Re: registering a DB2ConnectionPoolDataSource in tomcat 5.5

2007-07-27 Thread Mohammed Zabin
I didn't work on DB2 before, but i have configured Oracle and MySql
database in the same way.

First, you have to get the ideal connector for DB2, jar file, and
place it inside CATALINA_HOME/lib, or JAVA_HOME/lib/ext.

Second, Define your resource name, you already did.

Thrid: Add extra information in your web.xml file like the following:

  Oracle Datasource example
  jdbc/db2universal
  javax.sql.DataSource
  Container


After that, you have to connect your Resource name to the your server.
In context.xml add the following line of code:



One last thing, please note that you have to change the previous
parameters according to your database. Hope that will help
On 7/27/07, dileep_sivaraman <[EMAIL PROTECTED]> wrote:
>
> Hi ,
>
> I am trying to register a com.ibm.db2.jcc.DB2ConnectionPoolDataSource
> datasource in tomcat 5.5.4.
>
> I am not getting any exception's while doing a context lookup and gives me
> the datasource.
> However the paramaeter's that are set with that Resource are always null.
>
> Server.xml
> 
>  type="com.ibm.db2.jcc.DB2ConnectionPoolDataSource"
> factory="com.ibm.db2.jcc.DB2DataSourceFactory"
> serverName="PROD9S03.bankofamerica.com" username="abc" password="abc"/>
>
> 
>
> In my code  I get the datasource as :
>
> connPoolDataSource=(DB2ConnectionPoolDataSource)
> envContext.lookup("jdbc/db2universal");
>
> However when I print out the serverName parameter that has been set in the
> resource it prints null.
>
> System.out.println("connPoolDataSource.getServerName()
> :"+connPoolDataSource.getServerName());
>
> OUTPUT:
>
> connPoolDataSource.getServerName() :null
>
>
> Can somebody tell me what I  am doing wrong?
> --
> View this message in context:
> http://www.nabble.com/registering-a-DB2ConnectionPoolDataSource-in-tomcat--5.5-tf4155802.html#a11823991
> 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]
>
>

-
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: Bean and Servlet

2007-07-27 Thread Pid

Mohammed Zabin wrote:

On 7/27/07, Mohammed Zabin <[EMAIL PROTECTED]> wrote:

Ok, in the first page, which use a tag, I generate 10 random numbers. and
generate a SQL statement containing this numbers like the following:
SELECT * FROM table WHERE id in ( 2, 3, 5, 10,  etc). I use a string
to hold the " in " statement and bound it to the whole query string.

After submitting the page, I need to check the validety of the answers,
for the same questions. So, I store the inStr in a session and read it in
the second page.


why not just include the question id in the fieldname and submit with 
the answer?


an answer
another answer


Enumeration paramNames = request.getParameterNames();
while (paramNames.hasMoreElements()) {
String name = (String) paramNames.nextElement();
if (name.startsWith("question_")) {
String id = name.replaceFirst("question_", "");

// or remove 'all not digits'
// String numeric_id = name.replaceAll("\\D", "");

String value = request.getParameter(name);

// id=3, value=an answer
// id=5, value=another answer
}
}



Regarding concurrency issue, I think that I don't need to synchronize
random number generation. Because I don't have a problem for multiple
requests to have the same set of questions. The most important issue is that
for a given request, I need to submit the same collection of questions
to Results page. And so, i used session to store the questions ids'.


 On 7/27/07, Pid <[EMAIL PROTECTED]> wrote:

Caldarale, Charles R wrote:

From: Mohammed Zabin [mailto:[EMAIL PROTECTED] ]
Subject: Re: Bean and Servlet

My Problem is that, I want to pass these numbers, Questions
IDs, from the first page, which i have made it as a tag class,
to Results page, which was made as servlet.

Rather than hanging onto the ID within Tomcat, why not store it on the
generated web page (as a hidden field) and have some script on that

page

include it with the next request from the client?  That way you avoid
all synchronization issues that can occur with simultaneous requests.

It sounds like a simple form submit with (a) hidden field(s).

Why do all of the rest of the ids need to be submitted as well, if
you're only checking for the single correct answer?

p



That was my problem my buddy, by the way, when i used
session, it worked fine. and you stated that this will
not work

I didn't say it wouldn't work, I said you had to be careful and take
concurrency into account, which your code snippets did not.

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











smime.p7s
Description: S/MIME Cryptographic Signature


Re: registering a DB2ConnectionPoolDataSource in tomcat 5.5

2007-07-27 Thread dileep_sivaraman

Hi,
> Thrid: Add extra information in your web.xml file like the following: 
>  
>  Oracle Datasource example 
>  jdbc/db2universal 
>  javax.sql.DataSource 
>  Container 
> 


Do we have to add this since I am defining the resource as global?

Secondly I am getting the datasource reference from jndi but it seems to
loose it's parameters,


OUTPUT :

PRinting out entries in java:comp/env
Entry :jdbc: org.apache.naming.NamingContext
PRinting out entries in java:comp/env/jdbc
Entry :db2universal: org.apache.naming.ResourceLinkRef
It is not null

connPoolDataSource.getServerName() :null
 Port:446
 DB Name:null
Driver type :2
Timeout :0
User :null

Is there any way to print out the parameters that are passed along with the
Resource?
Or am I doing something fundamentally wrong?



Mohammed Zabin wrote:
> 
> I didn't work on DB2 before, but i have configured Oracle and MySql
> database in the same way.
> 
> First, you have to get the ideal connector for DB2, jar file, and
> place it inside CATALINA_HOME/lib, or JAVA_HOME/lib/ext.
> 
> Second, Define your resource name, you already did.
> 
> Thrid: Add extra information in your web.xml file like the following:
> 
>   Oracle Datasource example
>   jdbc/db2universal
>   javax.sql.DataSource
>   Container
> 
> 
> After that, you have to connect your Resource name to the your server.
> In context.xml add the following line of code:
> 
>  type="javax.sql.DataSource"/>
> 
> One last thing, please note that you have to change the previous
> parameters according to your database. Hope that will help
> On 7/27/07, dileep_sivaraman <[EMAIL PROTECTED]> wrote:
>>
>> Hi ,
>>
>> I am trying to register a com.ibm.db2.jcc.DB2ConnectionPoolDataSource
>> datasource in tomcat 5.5.4.
>>
>> I am not getting any exception's while doing a context lookup and gives
>> me
>> the datasource.
>> However the paramaeter's that are set with that Resource are always null.
>>
>> Server.xml
>> 
>> > type="com.ibm.db2.jcc.DB2ConnectionPoolDataSource"
>> factory="com.ibm.db2.jcc.DB2DataSourceFactory"
>> serverName="PROD9S03.bankofamerica.com" username="abc" password="abc"/>
>>
>> 
>>
>> In my code  I get the datasource as :
>>
>> connPoolDataSource=(DB2ConnectionPoolDataSource)
>> envContext.lookup("jdbc/db2universal");
>>
>> However when I print out the serverName parameter that has been set in
>> the
>> resource it prints null.
>>
>> System.out.println("connPoolDataSource.getServerName()
>> :"+connPoolDataSource.getServerName());
>>
>> OUTPUT:
>>
>> connPoolDataSource.getServerName() :null
>>
>>
>> Can somebody tell me what I  am doing wrong?
>> --
>> View this message in context:
>> http://www.nabble.com/registering-a-DB2ConnectionPoolDataSource-in-tomcat--5.5-tf4155802.html#a11823991
>> 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]
>>
>>
> 
> -
> 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/registering-a-DB2ConnectionPoolDataSource-in-tomcat--5.5-tf4155802.html#a11824613
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: Http Header Cache-Control

2007-07-27 Thread gerocoma-forophp
Hi,


I'm still studying this problem. While checking the
HTML SPEC
(http://www.w3.org/TR/html4/struct/global.html#h-7.4.4),
 I find the following:

---
META and HTTP headers

The http-equiv attribute can be used in place of the
name attribute and has a special significance when
documents are retrieved via the Hypertext Transfer
Protocol (HTTP). HTTP servers may use the property
name specified by the http-equiv attribute to create
an [RFC822]-style header in the HTTP response. Please
see the HTTP specification ([RFC2616]) for details on
valid HTTP headers.

The following sample META declaration:


will result in the HTTP header:
Expires: Tue, 20 Aug 1996 14:25:27 GMT

--

Therefore, I'm confused. What's the exact meaning of:
"HTTP servers may use the property name specified by
the http-equiv attribute to create an [RFC822]-style
header in the HTTP response."  

Does this means that Tomcat is ignoring this "may"
part of the specification?

I actually tried to add that meta tags in my document
but still not getting that in the hppt header.


Thanks.


--- [EMAIL PROTECTED] escribió:

> I've got a great link for solving this problem. Take
> a
> look at it. Hope that helps somebody.
> 
> 
>
http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html
> 
> 
> 
> 
> --- Christopher Schultz
> <[EMAIL PROTECTED]>
> escribió:
> 
> > To whom it may concern,
> > 
> > [EMAIL PROTECTED] wrote:
> > >> Something is wrong with that mod_jk version, by
> > the way. The most
> > >> recent release of mod_jk is 1.2.23.
> > > 
> > > Well, the installation file that I found in the
> > server is named:
> > > mod_jk-3.3-ap20.so, that's why I assumed that
> > version.
> > 
> > Strange. You must have some odd packaged version
> of
> > apache + mod_jk that
> > has its own (confusing) version number.
> > 
> > > This [filter] method looks really cool, any way,
> > does somebody knows
> > > another solution. I read about configuring
> apache
> > http.conf and/or
> > > installing the headers module.
> > 
> > I'm sure you can do something like this using
> Apache
> > httpd only, I'm
> > just not sure how to do it.
> > 
> > > Is that filter installation the only way in
> which
> > this could be
> > > achieved with tomcat??
> > 
> > There are other ways, but this is the most
> > convenient. Tomcat itself
> > does not support anything like this (that I know
> > of), so you basically
> > have to solve this at an application level.
> > 
> > Hope that helps,
> > -chris
> > 
> > 
> 
> 
> 
>  
>

> ¡Sé un mejor fotógrafo!
> Perfecciona tu técnica y encuentra las mejores
> fotos.   
> http://mx.yahoo.com/promos/mejorfotografo.html
> 
>
-
> To start a new topic, e-mail:
> users@tomcat.apache.org
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



  

¡Sé un mejor besador!
Comparte todo lo que sabes sobre besos.  
http://mx.yahoo.com/promos/mejorbesador.html

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



Tomcat and Terracotta

2007-07-27 Thread Scott McClanahan
I know this is a tomcat mailing-list but I'm just curious if anybody has
used tomcat with terracotta.  How well do the features of session
replication and the idea of a "distributed" jvm pan out.  Just curious
if anybody has done it and how they feel about it.

I'd be running tomcat 5.5.23 and sun's java 1.5.0_11.


-
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 dead but subsys locked

2007-07-27 Thread Jeffrey C. Baldwin

Has anyone ran into this problem before?

I found a few items via Google... they most/all reference removing the 
/var/lock/subsys/tomcat then restarting Tomcat and everything being fine.


Well, I've tried that, restart Tomcat, and run 'service status tomcat' 
and receive the same error "tomcat dead but subsys locked'


I can't access tomcat anymore.  Ideas?

I am running CentOS 5 and Tomcat 5.0.28

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



How to support JTA Transaction in tomcat to use JBoss Tree cache

2007-07-27 Thread Umar Zubair
I am using hibernate. I am looking to use JTA Transaction because i want to
use JBoss tree cache for cluster environment. My hibernate.cfg.xml files
contains

 



  java:comp/env/MykDS

  

  org.hibernate.dialect.MySQLDialect

  org.hibernate.transaction.JTATransactionFac
tory

  java:comp/UserTransaction

  org.hibernate.transaction.JBossTrans
actionManagerLookup



 

MyDS is defined in config/server.xml by

 





  

 



 

When I start to tomcat, I am facing following exception.

How can we use JTATransactions in tomcat.

 

141640 [http-8080-Processor25] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].

/Administration].[Faces Servlet]  - Servlet.service() for servlet Faces
Servlet threw exception%jav

x.naming.NameNotFoundException: Name TransactionManager is not bound in this
Context

at org.apache.naming.NamingContext.lookup(NamingContext.java:769)

at org.apache.naming.NamingContext.lookup(NamingContext.java:152)

at
org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)

at javax.naming.InitialContext.lookup(InitialContext.java:351)

at
org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager
(JNDITransac

ionManagerLookup.java:23)

at
org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:325)

at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)

at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConf
iguration.ja

a:915)

at
com.mw.framework.util.HibernateUtil.(HibernateUtil.java:37)

 

 

Thanks in advance

Umar

 



Re: Tomcat 5.0.28 - SSL Setup

2007-07-27 Thread Jeffrey C. Baldwin

Lyallex,

That worked!  Thank you!  I had copied and pasted from the TomCat SSL 
HowTo, but that didn't work...


I appreciate your time!  Now, on to other TomCat problems this 
server failure is killing me!


-jeff

Lyallex wrote:
The first thing that strikes me is that you have not defined a 
connector for

port 8443, here's one of mine (Tomcat 5.5.23)



I think you probably need this because (at the very least) you have
'redirectPort="8443"' in your non ssl Connector config

Rgds
Duncan

On 7/26/07, Jeffrey C. Baldwin <[EMAIL PROTECTED]> wrote:

Hello All,

I'm in a bit of a pinch here.  Just had an old Solaris server fail that
housed our TomCat environment and now I'm trying to put the pieces back
together on a new server.  I have a few of the applications up and
running.. but now I've run into an app that wants to run over ssl and
I'm having a hard time getting it to work.

Environment:  Tomcat 5.0.28 running on CentOS 5

I am including my server.xml below.

I have already generated my certificate after reading this document and
put the cert into /usr/local/tomcat:
http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html

Can someone please advice me on how to get ssl up and running on  
port 8443?




  className="org.apache.catalina.mbeans.ServerLifecycleListener"/>

  className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/> 


  
value="30"/>



  
factory

org.apache.catalina.users.MemoryUserDatabaseFactory

  
  
pathname
conf/tomcat-users.xml
  

  
  







directory="logs" prefix="localhost_log." suffix=".txt" 
timestamp="true" />



  

  



-
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 with 8 GB memory

2007-07-27 Thread Ron Wheeler



This is what Microsoft has to say on 64 bit using Websphere.
Basically 32bit better for small volume servers that can live with a 2GB 
memory ceiling.
Fundemental problem is that a process can only use 2GB no matter how 
much memory you have.

Java VM only gets to see 2GB no matter how much physical RAM you have.

Once you get serious about transactions, 64 bit cleans 32 bit.
Your entire software stack has to be written to use the extra memory 
addressing. OS, JVM, Servlet Engine.
If you run a 32 bit Linux at the bottom, you are screwed, If you run a 
32bit Java Run-time, screwed again.


This is likely the big reason why high volume applications run on 
"Enterprise" platforms rather than open source.
It is not about the quality of the software; it is about the attention 
to performance and the extra care in making sure that the whole stack is 
64 bit.


The subject title of this topic is a bit misleading. It should be 
something like "Tomcat with 2 GB on an 8GB machine"


Its all in the numbers.
http://msdn2.microsoft.com/en-us/vstudio/aa700838.aspx

Tests were all run on the same hardware (AMD) so you can get past the 
"CPU speed" issue.
How do you compare speed on AMD versus Intel (same $$$,  similar product 
number, same clock speed, same marketing hype)?


Ron

Peter Crowther wrote:
From: Joe Nathan [mailto:[EMAIL PROTECTED] 
Overall performance depend on many things: CPU speed, number of CPUs,

memory size, I/O, especially, virtual memory paging, network interface
bandwidth 
64bit machines come with better capacity except
cpu computation speed! 



Please state your references on this - at present, you're asserting it
without showing evidence to back you up.  Excuse us if we're
collectively sceptical when what you're saying goes against our
experiences and you don't supply backup.

  
Have you ever tried 64bit Windows desktop or laptop over 
32bit machine?



Yep.  Routinely.

  
Otherwise 64bit machines suck! That;s why 64bit Windows is not 
popular. I don't them many shops selling!



64-bit Windows is unpopular because of poor application compatibility,
just as Vista is unpopular because of poor application compatibility.
Few people buy an OS for speed or technical capability; they buy it
because it runs the apps they need/want.

- Peter

-
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 with 8 GB memory

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joe,

Joe Nathan wrote:
> Otherwise 64bit machines suck! That;s why 64bit Windows is not 
> popular. I don't them many shops selling!

64-bit Windows is not popular because it costs much more than the 32-bit
versions (though MS will send you a 64-bit upgrade disk for a small fee
if you already own a copy of Vista). Also, most people out there don't
know what the hell a 64-bit OS is.

Next, there are very few 64-bit-compiled applications out there, so the
64-bit OS gets you nothing when you're running 32-bit Office or SQL Server.

The only place that 64-bit OSs make sense really are on servers, and
nobody buys servers from computer shops.

> If you have studied computer science and engineering basics, you
> shouldn't be arguing about slowness of 64bit crunchers!

Wow. joe.bozo = true;

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

iD8DBQFGqe4e9CaO5/Lv0PARAko/AJ9UW2c7cAcAwwDHrHPEI9Fi0dj4QgCfaYpv
2q90zWUe130YKDPMKFdBE2Y=
=3Z0N
-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: Cannot create resource instance

2007-07-27 Thread Amol Chaudhari

Can't any of the gurus help me on this?
I tried to follow the steps given in one thread:
http://www.nabble.com/UserTransaction%2C-JOTM-and-Tomcat-5.5.x-tf1073172.html#a10830695
but now the problem has worsened. Now my Navigation is also not working
leave alone the adding of new record.
I am stuck on this and do not have much experience on deployment issues. I
will appreciate if anyone can help me out..



Amol Chaudhari wrote:
> 
> Hello Everyone,
> I am trying to migrate a sun java studio creator JSF (which uses Sun App
> Server 8) project to Netbeans 5.5 + inbuilt Tomcat 5.5.17. While trying to
> add a new record to my screen i am getting the following exception. Can
> anyone help me on this?
> 
> javax.naming.NamingException: Cannot create resource instance
>   at
> org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:112)
>   at
> javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
>   at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
>   at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
>   at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
>   at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
>   at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
>   at javax.naming.InitialContext.lookup(InitialContext.java:351)
>   at test.Student.btnSave_action(Student.java:593)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:585)
>   at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
>   at
> com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
>   at
> com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:57)
>   at
> org.ajax4jsf.framework.ajax.AjaxActionComponent.broadcast(AjaxActionComponent.java:88)
>   at
> org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:287)
>   at
> org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:263)
>   at
> org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:410)
>   at
> com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
>   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
>   at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
>   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>   at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>   at
> org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doXmlFilter(BaseFilter.java:574)
>   at
> org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:387)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>   at
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>   at
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>   at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>   at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>   at
> o

javax.naming.NamingException: Cannot create resource instance

2007-07-27 Thread Amol Chaudhari
Hello Everyone,
I am trying to migrate a sun java studio creator JSF (which uses Sun
App Server 8) project to Netbeans 5.5 + inbuilt Tomcat 5.5.17. While
trying to add a new record to my screen i am getting the following
exception. Can anyone help me on this?

I already have tried a few suggestions given here:
http://www.nabble.com/UserTransaction%2C-JOTM-and-Tomcat-5.5.x-tf1073172.html#a10830695
but that is not helping me. I dont have much experience in deployment
issues. I will appreciate if any one can help me out as i am stuck on
this.

The complete stack trace is:

javax.naming.NamingException: Cannot create resource instance
at 
org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:112)
at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
at org.apache.naming.NamingContext.lookup(NamingContext.java:780)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at test.Student.btnSave_action(Student.java:593)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at 
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
at 
com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:57)
at 
org.ajax4jsf.framework.ajax.AjaxActionComponent.broadcast(AjaxActionComponent.java:88)
at 
org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:287)
at 
org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:263)
at 
org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:410)
at 
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doXmlFilter(BaseFilter.java:574)
at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:387)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConne

Apache Portable Runtime

2007-07-27 Thread James Rome
When Tomcat starts, I get:
Jul 27, 2007 10:06:11 AM 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:
/usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/../lib/i386

I have libapr1.so in /usr/lib, and I copied it to the above i386
directory, but Tomcat still does not see it.

How do I get Tomcat to see this. Or is it looking for something else?

Thanks,
Jim Rome

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



Servlets Sending WEBDAV Requests(i.e. PROPPATCH) Work in Tomcat 4.x but not Tomcat 5.x +

2007-07-27 Thread Jason Kong

Greetings

My Company has a number of servlets that communicate with each other using
Webdav requests, in particular
Requests containing the PROPPATCH verb. Under the tomcat 4.x environment,
there is no issue, but once under tomcat 5.x or even tomcat 6.x, the
requests fail (although no exceptions are thrown, the response is HTTP 200
even!)

Does anyone have a work-around and possibly an explanation?

Thanks in advance

JK



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

-
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: COMET - Delays in output

2007-07-27 Thread Sebastiaan van Erk
What kind of environment are you testing in? Does the servlet run on 
your local development machine or over the network. Are there possibly 
transparent proxies between the two endpoints? You could try testing 
with network tools such as netcat to debug what's happening.


Regards,
Sebastiaan

FelixG wrote:

Hi,
I'm trying to implement the comet code-example from the Tomcat
documentation,
using Tomcat 6.0.13, Http11NioProtocol is working and my servlet is
implementing CometProcessor.
I am trying to write into the response's PrintWriter with this code in
event():

if (event.getEventType() == CometEvent.EventType.BEGIN) {
  PrintWriter writer = response.getWriter();
  writer.println("");
  writer.println("Chat Servlet" +
  "" + new Date()+ "");
writer.flush();
}
...

At this point I am experiencing a delay according to the value of the
comet.timeout parameter
before the data is actually arriving at the client (even though flush()
should send it immediately).
Could someone please point me to an explanation of this behavior?

Regards,
felix


-
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: Http Header Cache-Control

2007-07-27 Thread Nathan Hook
There have been at least 3 different highly intelligent people so far that 
have urged you to implement this behavior with a Filter.  After this email 
there are going to be 4 (but still only 3 highly intelligent) people that 
urge you to use a Filter for what you're trying to accomplish.


There are many reasons for using a Filter.

1.)  It is APPLICATION behavior that requires your pages not to be cached.  
Not server behavior.  Meaning, that if you take your application and install 
it on a different server it will not behave correctly.


2.)  META Tags for controlling cache behavior DO NOT WORK.  The reason that 
they don't work is that the servers between your application and your 
browser only look at the header values of a request for caching.  They 
(being the intermediary servers) do not inspect the actual message itself to 
read the META Tags.  Finally the browser itself almost always looks at the 
header cache values instead of the META Tags.


Whew...

3.) Using a Filter you can program different logic for different caching 
strategies for different media types.  For example, the JSP itself might not 
ever want to be cached, but images on the other hand...we would only want 
them requested once and then be cached.  Just and example.


So, to finish up this email...

Use a filter, it just works.


public class CacheControlFilter implements Filter
{
public void init(FilterConfig config) {}
public void destroy() {}

	public void doFilter(ServletRequest request, ServletResponse response, 
FilterChain filterChain) throws IOException, ServletException

{
		httpResponse.addHeader("Cache-Control", "no-chache, no-store, 
must-revalidate, max-age=0, proxy-revalidate, no-transform, pre-check=0, 
post-check=0, private");

filterChain.doFilter(request, response);
}
}



Original Message Follows
From: <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List , [EMAIL PROTECTED]
Subject: Re: Http Header Cache-Control
Date: Fri, 27 Jul 2007 09:17:54 -0500 (CDT)

Hi,


I'm still studying this problem. While checking the
HTML SPEC
(http://www.w3.org/TR/html4/struct/global.html#h-7.4.4),
 I find the following:

---
META and HTTP headers

The http-equiv attribute can be used in place of the
name attribute and has a special significance when
documents are retrieved via the Hypertext Transfer
Protocol (HTTP). HTTP servers may use the property
name specified by the http-equiv attribute to create
an [RFC822]-style header in the HTTP response. Please
see the HTTP specification ([RFC2616]) for details on
valid HTTP headers.

The following sample META declaration:


will result in the HTTP header:
Expires: Tue, 20 Aug 1996 14:25:27 GMT

--

Therefore, I'm confused. What's the exact meaning of:
"HTTP servers may use the property name specified by
the http-equiv attribute to create an [RFC822]-style
header in the HTTP response."

Does this means that Tomcat is ignoring this "may"
part of the specification?

I actually tried to add that meta tags in my document
but still not getting that in the hppt header.


Thanks.


--- [EMAIL PROTECTED] escribió:

> I've got a great link for solving this problem. Take
> a
> look at it. Hope that helps somebody.
>
>
>
http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html
>
>
>
>
> --- Christopher Schultz
> <[EMAIL PROTECTED]>
> escribió:
>
> > To whom it may concern,
> >
> > [EMAIL PROTECTED] wrote:
> > >> Something is wrong with that mod_jk version, by
> > the way. The most
> > >> recent release of mod_jk is 1.2.23.
> > >
> > > Well, the installation file that I found in the
> > server is named:
> > > mod_jk-3.3-ap20.so, that's why I assumed that
> > version.
> >
> > Strange. You must have some odd packaged version
> of
> > apache + mod_jk that
> > has its own (confusing) version number.
> >
> > > This [filter] method looks really cool, any way,
> > does somebody knows
> > > another solution. I read about configuring
> apache
> > http.conf and/or
> > > installing the headers module.
> >
> > I'm sure you can do something like this using
> Apache
> > httpd only, I'm
> > just not sure how to do it.
> >
> > > Is that filter installation the only way in
> which
> > this could be
> > > achieved with tomcat??
> >
> > There are other ways, but this is the most
> > convenient. Tomcat itself
> > does not support anything like this (that I know
> > of), so you basically
> > have to solve this at an application level.
> >
> > Hope that helps,
> > -chris
> >
> >
>
>
>
>
>

> ¡Sé un mejor fotógrafo!
> Perfecciona tu técnica y encuentra las mejores
> fotos.
> http://mx.yahoo.com/promos/mejorfotografo.html
>
>
-
> To start a new topic, e-mail:
> users@tomcat.apache.org
> To unsubscribe, 

Re: Apache Portable Runtime

2007-07-27 Thread Rainer Jung

The APR libs are not enough for the APR connector. Have a look at

http://tomcat.apache.org/tomcat-5.5-doc/apr.html

Regards,

Rainer

James Rome wrote:

When Tomcat starts, I get:
Jul 27, 2007 10:06:11 AM 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:
/usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/../lib/i386

I have libapr1.so in /usr/lib, and I copied it to the above i386
directory, but Tomcat still does not see it.

How do I get Tomcat to see this. Or is it looking for something else?

Thanks,
Jim Rome


-
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 with/without Tomcat native library

2007-07-27 Thread Petr Sumbera

Hi Guys,

Does anybody have experience or even better some numbers comparing
performance of Tomcat running with and without Tomcat native library
(libtcnative-1)?

I don't see any comparable difference so far (using TC 5.5.23, Native 
Library 1.1.10, Solaris/i386).


Cheers,

Petr


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



COMET - Delays in output

2007-07-27 Thread FelixG

Hi,
I'm trying to implement the comet code-example from the Tomcat
documentation,
using Tomcat 6.0.13, Http11NioProtocol is working and my servlet is
implementing CometProcessor.
I am trying to write into the response's PrintWriter with this code in
event():

if (event.getEventType() == CometEvent.EventType.BEGIN) {
  PrintWriter writer = response.getWriter();
  writer.println("");
  writer.println("Chat Servlet" +
  "" + new Date()+ "");
writer.flush();
}
...

At this point I am experiencing a delay according to the value of the
comet.timeout parameter
before the data is actually arriving at the client (even though flush()
should send it immediately).
Could someone please point me to an explanation of this behavior?

Regards,
felix
-- 
View this message in context: 
http://www.nabble.com/COMET---Delays-in-output-tf4158481.html#a11831204
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: registering a DB2ConnectionPoolDataSource in tomcat 5.5

2007-07-27 Thread Mohammed Zabin
On 7/27/07, dileep_sivaraman <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
> > Thrid: Add extra information in your web.xml file like the following:
> > 
> >  Oracle Datasource example
> >  jdbc/db2universal
> >  javax.sql.DataSource
> >  Container
> >
>
>
> > Do we have to add this since I am defining the resource as global?
> You are right, i think that you don't have to add the above in web.xml, I
> tried to remove it from Oracle configuration and MySql, and it works.


The most important thing, is to defing a resource in server.xml, and then
linke your resource to the server enviroment in context.xml

OUTPUT :
>
> PRinting out entries in java:comp/env
> Entry :jdbc: org.apache.naming.NamingContext
> PRinting out entries in java:comp/env/jdbc
> Entry :db2universal: org.apache.naming.ResourceLinkRef
> It is not null
> 
> connPoolDataSource.getServerName() :null
> Port:446
> DB Name:null
> Driver type :2
> Timeout :0
> User :null
>
> Is there any way to print out the parameters that are passed along with
> the
> Resource?
> Or am I doing something fundamentally wrong?
>
>
>
> Mohammed Zabin wrote:
> >
> > I didn't work on DB2 before, but i have configured Oracle and MySql
> > database in the same way.
> >
> > First, you have to get the ideal connector for DB2, jar file, and
> > place it inside CATALINA_HOME/lib, or JAVA_HOME/lib/ext.
> >
> > Second, Define your resource name, you already did.
> >
> > Thrid: Add extra information in your web.xml file like the following:
> > 
> >   Oracle Datasource example
> >   jdbc/db2universal
> >   javax.sql.DataSource
> >   Container
> > 
> >
> > After that, you have to connect your Resource name to the your server.
> > In context.xml add the following line of code:
> >
> >  > type="javax.sql.DataSource"/>
> >
> > One last thing, please note that you have to change the previous
> > parameters according to your database. Hope that will help
> > On 7/27/07, dileep_sivaraman <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi ,
> >>
> >> I am trying to register a com.ibm.db2.jcc.DB2ConnectionPoolDataSource
> >> datasource in tomcat 5.5.4.
> >>
> >> I am not getting any exception's while doing a context lookup and gives
> >> me
> >> the datasource.
> >> However the paramaeter's that are set with that Resource are always
> null.
> >>
> >> Server.xml
> >> 
> >>  >> type="com.ibm.db2.jcc.DB2ConnectionPoolDataSource"
> >> factory="com.ibm.db2.jcc.DB2DataSourceFactory"
> >> serverName="PROD9S03.bankofamerica.com" username="abc" password="abc"/>
> >>
> >> 
> >>
> >> In my code  I get the datasource as :
> >>
> >> connPoolDataSource=(DB2ConnectionPoolDataSource)
> >> envContext.lookup("jdbc/db2universal");
> >>
> >> However when I print out the serverName parameter that has been set in
> >> the
> >> resource it prints null.
> >>
> >> System.out.println("connPoolDataSource.getServerName()
> >> :"+connPoolDataSource.getServerName());
> >>
> >> OUTPUT:
> >>
> >> connPoolDataSource.getServerName() :null
> >>
> >>
> >> Can somebody tell me what I  am doing wrong?
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/registering-a-DB2ConnectionPoolDataSource-in-tomcat--5.5-tf4155802.html#a11823991
> >> 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]
> >>
> >>
> >
> > -
> > 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/registering-a-DB2ConnectionPoolDataSource-in-tomcat--5.5-tf4155802.html#a11824613
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Tomcat with 8 GB memory

2007-07-27 Thread Andrew Miehs


On 27/07/2007, at 12:19 PM, Joe Nathan wrote:

Christopher Schultz-2 wrote:


Joe Nathan wrote:
I would discourage to use such machine! 8GB means you are using  
64 bit

machine which will be much slower than 32 bit machines.

Huh? Why would a 64-bit machine run slower than a 32-bit machine?



Overall performance depend on many things: CPU speed, number of CPUs,
memory size, I/O, especially, virtual memory paging, network interface
bandwidth
64bit machines come with better capacity except
cpu computation speed!


I think what is being forgotten here is that is not a 32bit vs 64bit
theoretical discussion, but rather a comparison of AMD64 vs i386

Sun Java 1.5 64bit has always been quicker in my tests than the 32bit
variation - both running on Debian, both with a similar 2.6 kernel.

AMD64 has a lot more and longer registers than i386 - and I could  
imagine

that the results I have seen are based on this difference..

...

Otherwise 64bit machines suck! That;s why 64bit Windows is not
popular. I don't them many shops selling!


I would assume that is because

A) You need twice as much memory for everything
B) Limited drivers available
C) Games not 64bit...

Performance isn't the issue here...

Andrew



-
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 with 8 GB memory

2007-07-27 Thread Joe Nathan


Caldarale, Charles R wrote:
> 
>> I don't think JVMs have used stop-the-world GC for some time, now.
> Strictly speaking, they still do, but global suspends occur much, much
> less frequently and for much shorter periods, so in most environments
> it's of negligible impact.
> 
http://www.roselladb.com/dbms.htm Rosella DBMS  is a all java DBMS that can
use up to 512GB+ buffers on heap. 
What it does in the beginning is to allocate multiple-megabyte 
memory blocks to reduce the number of objects, so that 
subsequent garbage collections can deal with very few 
memory objects. It generate very little objects even though
it can deal with tens of millions records.

If you want to use big memory, you have to design to avoid such 
seisures.






-- 
View this message in context: 
http://www.nabble.com/Tomcat-with-8-GB-memory-tf4149367.html#a11826544
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat with 8 GB memory

2007-07-27 Thread Joe Nathan


Christopher Schultz-2 wrote:
> 
> Joe Nathan wrote:
>> I would discourage to use such machine! 8GB means you are using 64 bit
>> machine which will be much slower than 32 bit machines.
> Huh? Why would a 64-bit machine run slower than a 32-bit machine? 
> 

Overall performance depend on many things: CPU speed, number of CPUs,
memory size, I/O, especially, virtual memory paging, network interface
bandwidth 
64bit machines come with better capacity except
cpu computation speed! 

Have you ever tried 64bit Windows desktop or laptop over 32bit machine?
This will tell you exactly. If your application is data intensive, big
memory
over 4GB can work better with reduced I/O operations! Database servers
or WS that support session information of thousands of users over long 
period of time, having big memory improve performance.

If you have studied computer science and engineering basics, you shouldn't
be arguing about slowness of 64bit crunchers!

Otherwise 64bit machines suck! That;s why 64bit Windows is not 
popular. I don't them many shops selling!


-- 
View this message in context: 
http://www.nabble.com/Tomcat-with-8-GB-memory-tf4149367.html#a11826413
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]



problem with tomcat and web services

2007-07-27 Thread Andrew123

Hi All
I have a server with apache and tomcat 5.5 with xfire, integrated together
with mod_jk. When I strongly load this server, tomcat stops response any
request. But it isn't write any exception to log file. I change parameter
maxThreads to 2000 but it isn't help me (tomcat works with more than 200
threads at once). Also I change maxProcessors to 2000. What can I do with
this problem? 
-- 
View this message in context: 
http://www.nabble.com/problem-with-tomcat-and-web-services-tf4156659.html#a11826219
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat with 8 GB memory

2007-07-27 Thread Leon Rosenberg
Could you provide some additional information?
So far 64bit machines always outperformed 32bit machines in my
personal benchmarks as well as in third party benchmarks I stumbled
upon.

So it would be great if you could provide some links or explanations.

thank you
leon

On 7/27/07, Joe Nathan <[EMAIL PROTECTED]> wrote:
>
>
> Christopher Schultz-2 wrote:
> >
> > Joe Nathan wrote:
> >> I would discourage to use such machine! 8GB means you are using 64 bit
> >> machine which will be much slower than 32 bit machines.
> > Huh? Why would a 64-bit machine run slower than a 32-bit machine?
> >
>
> Overall performance depend on many things: CPU speed, number of CPUs,
> memory size, I/O, especially, virtual memory paging, network interface
> bandwidth
> 64bit machines come with better capacity except
> cpu computation speed!
>
> Have you ever tried 64bit Windows desktop or laptop over 32bit machine?
> This will tell you exactly. If your application is data intensive, big
> memory
> over 4GB can work better with reduced I/O operations! Database servers
> or WS that support session information of thousands of users over long
> period of time, having big memory improve performance.
>
> If you have studied computer science and engineering basics, you shouldn't
> be arguing about slowness of 64bit crunchers!
>
> Otherwise 64bit machines suck! That;s why 64bit Windows is not
> popular. I don't them many shops selling!
>
>
> --
> View this message in context: 
> http://www.nabble.com/Tomcat-with-8-GB-memory-tf4149367.html#a11826413
> 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]
>
>

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



Artemis : Michael Vingert est absent

2007-07-27 Thread Mickael . Vingert

I will be out of the office starting  27/07/2007 and will not return until
28/07/2007.

Vous pouvez joindre l'équipe du Support Technique Artemis par mail à
l'adresse [EMAIL PROTECTED] ou par téléphone au 33 1 46 90 15
85


-
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 with 8 GB memory

2007-07-27 Thread Peter Crowther
> From: Joe Nathan [mailto:[EMAIL PROTECTED] 
> Overall performance depend on many things: CPU speed, number of CPUs,
> memory size, I/O, especially, virtual memory paging, network interface
> bandwidth 
> 64bit machines come with better capacity except
> cpu computation speed! 

Please state your references on this - at present, you're asserting it
without showing evidence to back you up.  Excuse us if we're
collectively sceptical when what you're saying goes against our
experiences and you don't supply backup.

> Have you ever tried 64bit Windows desktop or laptop over 
> 32bit machine?

Yep.  Routinely.

> Otherwise 64bit machines suck! That;s why 64bit Windows is not 
> popular. I don't them many shops selling!

64-bit Windows is unpopular because of poor application compatibility,
just as Vista is unpopular because of poor application compatibility.
Few people buy an OS for speed or technical capability; they buy it
because it runs the apps they need/want.

- Peter

-
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 do this

2007-07-27 Thread Gregor Schneider
ok, this information is for free, the next one you'll have to pay me for:

they keys of software.distributions are check-sums over the
program-archives (like zip, tgz etc.).

those check-sums usually are calculated using a program like pgp
(pretty good privacy) or the free version from the
gnu-software-foundation (gpg - that was the link i posted recently).

so what you have to do is to install gpg or pgp first.

having installed one of those programs and once knowing your ways
around there, you should be able to understand the usage of those keys
(checksums) that are used in apache software-distributions and many
more products.

btw., you do not necessarily have to check those tomcat-archives -
only, if you're paranoid or if you want to setup a
production-server...

what i really dislike is somebody like you giving the list 2 miserable
words "please help", then asking the list for a
step-by-step-instruction.

you should at least show some effort to sort out things yourself first!

ppl in this list are busy earning their dollars / euros, and when they
help you, they offer time and effort to do so.

therefore, show at least some RESPECT and try to solve the problem
yourself. If you're in a deadend, ppl here will be happy to help you.

Therefore, may last tip for you:

- If you just want to play around with Tomcat:
 download it, forget about the keys and be happy

- If you're a stud and your prof asked you to verify the download,
either go to the link I've posted above, read about
public/private-key-principles, download gpg and try to understand the
software. If you don't understand anything about public/private-keys,
let your prof know.

- if this is a requirement from a customer: simply tell your customer
that you don't know nothing about the basics of informatics and let
him know to better get someone else for the job

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
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: Apache Portable Runtime

2007-07-27 Thread Lakshmi Venkataraman
You have to compile libtcnative as well. 
In addition to the documentation mentioned by Rainer, also look in the
archives for the threads

"Tomcat native library Not found in Solaris 9"  and
"Tomcat 5.5, IPv6, APR, HTTP and HTTPS"

Lakshmi

-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 27, 2007 9:22 AM
To: Tomcat Users List
Subject: Re: Apache Portable Runtime

The APR libs are not enough for the APR connector. Have a look at

http://tomcat.apache.org/tomcat-5.5-doc/apr.html

Regards,

Rainer

James Rome wrote:
> When Tomcat starts, I get:
> Jul 27, 2007 10:06:11 AM 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:
> /usr/lib/jvm/java-1.5.0-sun-1.5.0_12/jre/lib/i386/client:/usr/lib/jvm/
> java-1.5.0-sun-1.5.0_12/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0
> _12/jre/../lib/i386
> 
> I have libapr1.so in /usr/lib, and I copied it to the above i386 
> directory, but Tomcat still does not see it.
> 
> How do I get Tomcat to see this. Or is it looking for something else?
> 
> Thanks,
> Jim Rome

-
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 with/without Tomcat native library

2007-07-27 Thread Filip Hanik - Dev Lists

Petr Sumbera wrote:

Hi Guys,

Does anybody have experience or even better some numbers comparing
performance of Tomcat running with and without Tomcat native library
(libtcnative-1)?
most definitely, the APR connector lets you do keep alive connections on 
more connections than you have threads

and also, biggest gain is of course SSL, OpenSSL vs Java SSL

Filip


I don't see any comparable difference so far (using TC 5.5.23, Native 
Library 1.1.10, Solaris/i386).


Cheers,

Petr


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



Question about File ownership file upload and HTTP Post

2007-07-27 Thread Josh Rountree
I have a servlet that processes requests for file uploads. When I write this
file to disk, root is the owner? Is this the correct behavior? Since I do
not have root access on the machine that the servlet executes I cannot
remove these files. Any documentation that explains how to change the owner
of these uploaded files?

 

Thanks, Josh


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.22/922 - Release Date: 7/27/2007
6:08 AM
 


Re: Question about File ownership file upload and HTTP Post

2007-07-27 Thread Filip Hanik - Dev Lists

Josh Rountree wrote:

I have a servlet that processes requests for file uploads. When I write this
file to disk, root is the owner? Is this the correct behavior? Since I do
not have root access on the machine that the servlet executes I cannot
remove these files. Any documentation that explains how to change the owner
of these uploaded files?
  

that is because your tomcat (java) process runs as root
you could write code to change the owner of the file after saving it to disk
Filip
 


Thanks, Josh


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.22/922 - Release Date: 7/27/2007

6:08 AM
 

  



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.19/917 - Release Date: 7/25/2007 1:16 AM
  



-
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: NamingContextBindingsEnumeration error from Tomcat 5.5 on Eclipse 3.3

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Koshy,

Geevarghese, Koshy wrote:
> I'm trying to run a web application on Eclipse 3.3 with Tomcat 5.5.
> 
> I configured the Tomcat 5.5 server in  the eclipse server view and
> added my project to the server.
> 
> I'm starting tomcat through the eclipse server view and get the
> following error -

[snip]

> java.lang.reflect.InvocationTargetException

[snip]

> Caused by: java.lang.NoSuchMethodError:
> org.apache.naming.NamingContextBindingsEnumeration.(Ljava/util/Enu
> meration;)V

It looks like you are compiling your application with one Java API and
running it on another. Is that possible? It's one of the only reasons
you might get a NSME like this.

- -chris

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

iD8DBQFGqj0s9CaO5/Lv0PARAjF/AJ47QiK4tRLPEHk+DHJC5fhobVvDEgCdEDjh
WH/CgxN+CUw5u4uR2RcWRcg=
=tYDg
-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: Question about File ownership file upload and HTTP Post

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Josh,

Josh Rountree wrote:
> I have a servlet that processes requests for file uploads. When I
> write this file to disk, root is the owner?

You should not be running Tomcat as root. Are you doing that? Stop it!

> Is this the correct behavior?

Unless you do something special, the file will be owned by the user that
the Tomcat process is running as.

> Since I do not have root access on the machine that the servlet
> executes I cannot remove these files. Any documentation that explains
> how to change the owner of these uploaded files?

File ownership is one of those things that Java does not handle very
well. There's a bug report that's still in progress at Sun:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4313887

All the related documentation for this bug (and duplicates of it) says
to write your own native wrapper around the filesystem calls necessary.
Fortunately, such a wrapper would be very simple to write, if still a
pain in the neck to deploy, etc.

- -chris

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

iD8DBQFGqjxu9CaO5/Lv0PARAicgAJ9tk7IOC178TxPbJvTN1mGiGCv9CgCgmaYg
1cYKWzYugHEqrLCljCi5BkI=
=qWxD
-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]



NamingContextBindingsEnumeration error from Tomcat 5.5 on Eclipse 3.3

2007-07-27 Thread Geevarghese, Koshy
Hi,

  I'm trying to run a web application on Eclipse 3.3 with Tomcat 5.5.

  I configured the Tomcat 5.5 server in  the eclipse server view and
added my project to the server.

  I'm starting tomcat through the eclipse server view and get the
following error -

 

 

java.lang.reflect.InvocationTargetException

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:585)

  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)

  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

Caused by: java.lang.NoSuchMethodError:
org.apache.naming.NamingContextBindingsEnumeration.(Ljava/util/Enu
meration;)V

  at
org.apache.naming.NamingContext.listBindings(NamingContext.java:389)

  at
org.apache.naming.NamingContext.listBindings(NamingContext.java:418)

  at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:135)

  at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:109)

  at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve
nt(GlobalResourcesLifecycleListener.java:81)

  at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:120)

  at
org.apache.catalina.core.StandardServer.start(StandardServer.java:693)

  at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

  ... 6 more

 

If anyone knows how to solve this, please let me know.

 

 

Thank you,

Koshy Geevarghese

 



Re: Cannot create resource instance

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Amol,

Amol Chaudhari wrote:
> Can't any of the gurus help me on this?

Perhaps. Can you post the code you are using near this line of code:

test.Student.btnSave_action(Student.java:593)

Also describe how you are configuring your JNDI DataSource. In fact,
please include your DataSource configuration.

This problem (misconfigured JNDI DataSource) happens to a lot of people,
and it's usually something simple but takes a while to figure out.

- -chris

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

iD8DBQFGqjqe9CaO5/Lv0PARAkkyAJ9k18Rgm6D/+DvbU1QcibETJoglKACeL1SL
QgUI5aL4UkWB/iL66fmmljk=
=TuUz
-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]



Verify the downloaded files integrity

2007-07-27 Thread Varuna Seneviratna
Hi
I want to know how verify the downloaded Tomcat .zip version's integrity
using pgp keys and cheksums
and what is the theory behind it
 Varuna


Re: Verify the downloaded files integrity

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Varuna,

Varuna Seneviratna wrote:
> I want to know how verify the downloaded Tomcat .zip version's integrity
> using pgp keys and cheksums

Mladen Turk already answered that question in 2007-07-26 at 14:25. He
then pointed you to http://httpd.apache.org/download.cgi#verify in a
subsequent message.

> and what is the theory behind it

The theory is that each file has a cryptographic signature generated and
then both the file and the signature (found in the KEYS file) are made
available for download.

After you download a file from a mirror, you can get the KEYS file from
the official site and then run your own cryptographic signature on the
file and compare it to the official KEYS. If they do not match, then you
know that the file you got from the mirror is corrupted or, worse, booby
trapped.

Apache uses GnuPG to sign their files. If you don't have GnuPG, you can
use your own MD5-checksum-generating program to check the file against
the file's MD5 sum (usually found in original_file.md5 in the same
directory where you downloaded the original file).

Both procedures are covered in the page Mladen provided.

If you want to learn about GnuPGP, then google GnuPG and read all about
it. If you want to learn about MD5, then google MD5 (or look it up in
Wikipedia) and read all about it.

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

iD8DBQFGqksC9CaO5/Lv0PARAr7dAJ4q/xmL5gV39SiwGydmlotIAehQSQCdFrO8
XfoYJ6E2vwvCjGkdrL0rDis=
=pMuh
-END PGP SIGNATURE-

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



RE: Tomcat and cookies caching issue

2007-07-27 Thread Nelson, Tracy M.
| From: Riccardo [mailto:[EMAIL PROTECTED]
| Sent: Thursday, 26 July, 2007 16:10
| 
| Maybe I should define some headers management rule within the webapp..
| I haven't measured the time exactly, but i find quite interesting that
| this caching effect lasts around 2 minutes, than disappears. I wonder
| if it would be possible to set this time to 0 through some
| parameter...

Do you have the "CacheRoot" directive set in your proxy configuration?
If so, try removing it (make sure that "ProxyRequests" is set to ON).
It could be that the proxy server is caching the results of your request
and returning them to you.  Or you could try adding a "NoCache
http://x.y.z.w/reporting/"; line to your config.  Either way, this should
eliminate the possibility that the proxy is returning a cached copy of
the report.
-

The information contained in this message is confidential
proprietary property of Nelnet, Inc. and its affiliated 
companies (Nelnet) and is intended for the recipient only.
Any reproduction, forwarding, or copying without the express
permission of Nelnet is strictly prohibited. If you have
received this communication in error, please notify us
immediately by replying to this e-mail.


-
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: NamingContextBindingsEnumeration error from Tomcat 5.5 on Eclipse 3.3

2007-07-27 Thread Len Popp
To expand on Chris's comment,
With Eclipse it is possible to compile for a newer version of Java and
run with an older JRE, which will fail. Make sure it's both compiling
and running the version of Java you want to use.

I always have a hard time finding anything in the maze of Eclipse
settings, so here's how to check this:
To see which JRE you're running with, open the server from the Servers
view, find the Runtime item and click Edit next to it. (This is in
Eclipse 3.2 with WST 1.5, hopefully it's the same in your version.)
To see which version of Java it's compiling for, look in Project >
Properties > Java Compiler; if it's not there, try Preferences > Java
> Compiler.
-- 
Len


On 7/27/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Koshy,
>
> Geevarghese, Koshy wrote:
> > I'm trying to run a web application on Eclipse 3.3 with Tomcat 5.5.
> >
> > I configured the Tomcat 5.5 server in  the eclipse server view and
> > added my project to the server.
> >
> > I'm starting tomcat through the eclipse server view and get the
> > following error -
>
> [snip]
>
> > java.lang.reflect.InvocationTargetException
>
> [snip]
>
> > Caused by: java.lang.NoSuchMethodError:
> > org.apache.naming.NamingContextBindingsEnumeration.(Ljava/util/Enu
> > meration;)V
>
> It looks like you are compiling your application with one Java API and
> running it on another. Is that possible? It's one of the only reasons
> you might get a NSME like this.
>
> - -chris
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGqj0s9CaO5/Lv0PARAjF/AJ47QiK4tRLPEHk+DHJC5fhobVvDEgCdEDjh
> WH/CgxN+CUw5u4uR2RcWRcg=
> =tYDg
> -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]



Re: Tomcat with 8 GB memory

2007-07-27 Thread Joe Nathan


Leon Rosenberg-3 wrote:
> 
> Could you provide some additional information?
> So far 64bit machines always outperformed 32bit machines in my
> personal benchmarks as well as in third party benchmarks I stumbled
> upon.
> 
> So it would be great if you could provide some links or explanations.
> 
> thank you
> leon
> 

It's for the very simple reason: 64bit machines have 64bit address!
What is address! It's pointers if you are familiar with C, Pointers
are 64bit integers. Pointer arithmetics will deal with 64bit addressed
data. Arithmetic operations on 64bit takes app. twice long as 32bits.
As this is used very many in compiled binaries pointer arithmetics, 
you should expect 64bit machines will give you slower performance, 
for cpu bound applications. Note that hardware clocking time also 
slower than 32 machines.

However, if your application is "data intensive" (with heaps of data
caches),
larger memory can boost quite a lot. You may even get several time
or more better through put than otherwise. That's why there is a push
for 64 bit machine.

Also there is another aspect of programming skills. Many servlet programmers
don't understand underlying garbage collection algorithms. They tend to
make use lot more memory. If you control memory use smartly, 
this can boost performance significantly as well!

regards.










-- 
View this message in context: 
http://www.nabble.com/Tomcat-with-8-GB-memory-tf4149367.html#a11837027
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]



Tomcat 6 equivalent of Tomcat 5's stateSessionTimeout

2007-07-27 Thread Anthony J Biacco

I'd like to change the default of 60 seconds in relation to the log "
This operation will timeout if no session state has been received within
60 seconds."
Is there an equivalent? I'm running 6.0.13.

Thanx!

-Tony
-- 
Anthony J. Biacco
Senior Systems/Network Administrator
Decentrix Inc.
303-899-4000 x303

-
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 with 8 GB memory

2007-07-27 Thread Joe Nathan


ronatartifact wrote:
> 
> This is what Microsoft has to say on 64 bit using Websphere.
> Basically 32bit better for small volume servers that can live with a 2GB 
> memory ceiling.
> 
If you have applications that can benefit from memory bigger thab 2 or 4GB,
your application is data intensive. Having more memory can reduce 
I/Os for both by program and system virtual storage paging. This 
can make huge difference in performance. If you have such applications,
64bit is the one to go. Otherwise, 32 will work better at lower cost!

cheers.

-- 
View this message in context: 
http://www.nabble.com/Tomcat-with-8-GB-memory-tf4149367.html#a11837056
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat with 8 GB memory

2007-07-27 Thread Leon Rosenberg
On 7/27/07, Joe Nathan <[EMAIL PROTECTED]> wrote:
>
>
> Leon Rosenberg-3 wrote:
> >
> > Could you provide some additional information?
> > So far 64bit machines always outperformed 32bit machines in my
> > personal benchmarks as well as in third party benchmarks I stumbled
> > upon.
> >
> > So it would be great if you could provide some links or explanations.
> >
> > thank you
> > leon
> >
>
> It's for the very simple reason: 64bit machines have 64bit address!
> What is address! It's pointers if you are familiar with C, Pointers
> are 64bit integers. Pointer arithmetics will deal with 64bit addressed
> data. Arithmetic operations on 64bit takes app. twice long as 32bits.

Sorry, this just sounds plain wrong. If a 64 bit processor comes with
64 bit register it means that it can make an integer 64 bit addition
(long) in one operation, which is at least twice as fast as the same
operation on a 32 bit processor, and an addition of a 32 bit integer
is as fast as on a 32 bit processor, at least what you see outside of
the processor.

Further, following your argumentation, 16 bit processor is faster than
32 bit processor and 8 bit faster than 16... hell my abacus rocks.

I admit that my last course in processors is like 10 years ago, but we
actually measured the performance of the same application under 64 bit
java on a 64 bit system and 32 bit java on a 32 bit system, and guess
what, the 64 bit version outperformed the 32 bit version by nearly
10%.

Despite empirical data, the simply marketing logic tells us, that 64
bit processors are faster, at least amd and intel. The 64 bit
processors (as they were introduced) were higher priced as the 32 bit
alternatives and were shipped with larger cache and higher tacts. But
the whole discussion is pointless anyway, since there are no
comparable 32 bit processors on market anymore, and would you agree
that a 64 bit application runs faster on a 64 bit processor than a 32
bit application?


> As this is used very many in compiled binaries pointer arithmetics,
> you should expect 64bit machines will give you slower performance,
> for cpu bound applications. Note that hardware clocking time also
> slower than 32 machines.
>
> However, if your application is "data intensive" (with heaps of data
> caches),
> larger memory can boost quite a lot. You may even get several time
> or more better through put than otherwise. That's why there is a push
> for 64 bit machine.
>
> Also there is another aspect of programming skills. Many servlet programmers
> don't understand underlying garbage collection algorithms. They tend to
> make use lot more memory. If you control memory use smartly,
> this can boost performance significantly as well!

Errm WHAT???



regards
Leon

-
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: broker start up in Tomcat

2007-07-27 Thread suchitha koneru
Thank you so much Johnny for the idea. We have two web apps A and B namely.
A is the front end of our application and B is the back end. Our application
is web based, so we have a lot of https requests coming from the browser. We
could have used a servlet for inter web app communication  , but a servlet
is visible to teh outside world. Our Messaging bus implemented using active
mq is confined to the JVM and is not accessible to the out side world. The
Web app A and Web app B have to keep each other updated and in sycn with
respect to the mutual  changes .They do it via the JMS Messaging Bus
implemented using active MQ.

On 7/26/07, Johnny Kewl <[EMAIL PROTECTED]> wrote:
>
> I dont know ActiveMQ but I think you will have to allow "any" WebApp that
> needs it, to start it, if its not already running I think you have 2
> options, create a custom JNDI object or create a singleton start up object
> in common/lib, here is an article
> http://www.javacoffeebreak.com/articles/designpatterns/index.html
>
> Just remember that the lib is now shared and I imagine you call into this
> broker to send messages, if so remember to make it thread safe, it
> possibly
> is already.
>
> I am curious about what you using it for... I have still to find
> application
> for JMS in the TC environment, because sending a message to a servlet from
> an embedded http client has always served me well... its on port 80, so no
> firewall problems etc. I guess its because you have message beans in an
> application server somewhere just wondering.
>
> - Original Message -
> From: "suchitha koneru" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, July 27, 2007 12:48 AM
> Subject: broker start up in Tomcat
>
>
> > Hello Tomcat Users,
> > I am using Tomcat server 5.5.20 along with Java
> > 1.6,
> > and Active MQ 4.1.1.  There are two web applications A and B which
> > communicate via the active mq broker. Our application has a requirement
> of
> > starting the broker before any of the web apps. Where should I be
> placing
> > the code which starts the broker.  I can create a jar file out of the
> code
> > and dependent libraries and place it in common/lib. How will I
> communicate
> > to Tomcat server that the broker has to be started during the server
> > start
> > up  process, before any of the web apps ? Any pointers  in this regard ?
> >
> > thank you ,
> > Suchitha.
> >
>
>
> -
> 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 with 8 GB memory

2007-07-27 Thread Joe Nathan



Christopher Schultz-2 wrote:
> 
> 64-bit Windows is not popular because it costs much more than the 32-bit
> versions (though MS will send you a 64-bit upgrade disk for a small fee
> if you already own a copy of Vista). Also, most people out there don't
> know what the hell a 64-bit OS is.
> 
> Next, there are very few 64-bit-compiled applications out there, so the
> 64-bit OS gets you nothing when you're running 32-bit Office or SQL
> Server.
> 
> The only place that 64-bit OSs make sense really are on servers, and
> nobody buys servers from computer shops.
> 

If your logic is valid, we should be still using 16bit or 8bit machines!
Retail price between 64bit and 32bit not much difference.
Not many people willing to pay a bit extra for slower running 
systems. Not many s/w developers make 64bit available.
That's what happening on personal machines.

As I mentioned, server can be different. Since many people may use it
simulataneously, there may be a need for bigger main memory. 64bit 
address this market!

regards.

-- 
View this message in context: 
http://www.nabble.com/Tomcat-with-8-GB-memory-tf4149367.html#a11837771
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat with 8 GB memory

2007-07-27 Thread Alexey Solofnenko
I was under impression that GC does not scale linearly. That means one 
8GB process will be slower than two 4GB processes. There are other 
considerations too: multi-threading - global locks will lock less 
threads (maybe in GC, heap, application logic, ...), but cluster 
overhead may be noticeable too.


- Alexey.

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lightbulb,

lightbulb432 wrote:
  

If you have a gigantic server with something like 8 GB of memory, what would
be the best way to run Tomcat 6 on it? One instance, multiple instances, or
divide it up into two or more virtualized servers each with one instance?



Unless you have concerns about stability of TC6 or your own application,
one big JVM with a ton of threads would be my recommendation.
Virtualization or multiple TC instances only adds overhead with no other
real benefit. (If you run multiple applications, multiple TC instances
might make sense).

  

Is Tomcat meant to run as one instance with that much memory, or is it
optimized for a different amount of memory?



Tomcat shouldn't care. I think that thread synchronization is faster
than full context switching, but that can be very sensitive to the
platform, OS, and tuning parameters you might have (in the OS). Java is
perfectly happy to run with 8GB.

  

I realize with the options I mentioned above there are implications
regarding high-availability and performance, but I'm not sure exactly what
they'd be. Perhaps someone with more knowledge of this kind of stuff could
comment.



If you trust your operating system (I would trust any UNIX and UNIX-like
OS, and Windows is somewhat dependable if you don't ask it to do too
many things), then a single instance of the OS on a lot of hardware is
just fine: go for it.

If you are concerned about your OS's stability, then by all means run
multiple instances of the OS and load balance between. From a strict
performance standpoint, less is more, so stick to one OS and one Tomcat
instance on that big, fat machine.

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

iD8DBQFGqOyq9CaO5/Lv0PARAlTDAJwKFLgizNh/MatDmEupjdLvLvvDWgCfbHSj
XLO50tctVgV5w+N/qwYYZEQ=
=DJLh
-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]
  


--

Alexey N. Solofnenko 
Pleasant Hill, CA (GMT-8 usually)


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Tomcat with 8 GB memory

2007-07-27 Thread Andrew Miehs


On 27/07/2007, at 11:30 PM, Joe Nathan wrote:


It's for the very simple reason: 64bit machines have 64bit address!
What is address! It's pointers if you are familiar with C, Pointers
are 64bit integers. Pointer arithmetics will deal with 64bit addressed
data. Arithmetic operations on 64bit takes app. twice long as 32bits.
As this is used very many in compiled binaries pointer arithmetics,
you should expect 64bit machines will give you slower performance,
for cpu bound applications. Note that hardware clocking time also
slower than 32 machines.


You may find this interesting...

quoting from wikipedia... http://en.wikipedia.org/wiki/X86-64


Full support for 64-bit integers: All general-purpose registers  
(GPRs) are expanded from 32 bits to 64 bits, and all arithmetic and  
logical operations, memory-to-register and register-to-memory  
operations, etc., are now directly supported for 64-bit integers.  
Pushes and pops on the stack are always in eight-byte strides, and  
pointers are eight bytes wide.



Additional registers: In addition to increasing the size of the  
general-purpose registers, the number of named general-purpose  
registers is increased from eight (i.e.  
eax,ebx,ecx,edx,ebp,esp,esi,edi) in x86-32 to 16. It is therefore  
possible to keep more local variables in registers rather than on the  
stack, and to let registers hold frequently accessed constants;  
arguments for small and fast subroutines may also be passed in  
registers to a greater extent. However, more registers also involves  
more saving and restoring of register contents, and AMD64 still has  
fewer registers than many common RISC processors (which typically  
have 31–64 registers) or VLIW-like machines such as the IA-64 (which  
has 128 registers).



Cheers

Adrew

-
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 6 equivalent of Tomcat 5's stateSessionTimeout

2007-07-27 Thread Filip Hanik - Dev Lists

Anthony J Biacco wrote:

I'd like to change the default of 60 seconds in relation to the log "
This operation will timeout if no session state has been received within
60 seconds."
Is there an equivalent? I'm running 6.0.13.
  

stateTransferTimeout?

Filip

Thanx!

-Tony
  



-
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 with 8 GB memory

2007-07-27 Thread Joe Nathan


Leon Rosenberg-3 wrote:
> 
> Sorry, this just sounds plain wrong. If a 64 bit processor comes with
> 64 bit register it means that it can make an integer 64 bit addition
> (long) in one operation, 
> 

It does in single operation, but it taks twices clock pulse than 32bit!
You cannot perform binary adder operation in parallel. Speed of operation
is measured with the number of clock pulse. 32bit adder may require 
something like 36 clock pulses or close numbers. 64bit require about 70
clock
pulses. Remember that cpu logic gates work in sync with clocks.
Limited number of operations can be performed in a second. The 
number will change depending on your cpu clock pulse, which 
is limited to about 3.5GHz these days. That's why we want more Hz
to get speed. That's the thing that give us the speed!




-- 
View this message in context: 
http://www.nabble.com/Tomcat-with-8-GB-memory-tf4149367.html#a11838049
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat with 8 GB memory

2007-07-27 Thread David Smith
I had a processor design class and know very well the actual gate design 
in bit arithmetic.  Aside from the propagation of the carry bit taking a 
teeny, tiny bit longer in 64 bit arithmetic, it still occurs in a single 
clock cycle. 

Further, primitive data type sizes in java are very clearly defined by 
the language specification (java language spec ver. 3, section 4.2) and 
will not change size just because the JVM is in a 64-bit environment.  
Hmm... just thought of an interesting point.  Long integers and double 
precision floats will actually process faster because the CPU can 
swallow them whole as opposed to handling them in two or more cycles. 

Pile on multiple cores, pipeline architecture, and two levels of cache 
and it becomes obvious to me the performance isn't hit at all by 64-bit 
operation.


--David

Leon Rosenberg wrote:

On 7/27/07, Joe Nathan <[EMAIL PROTECTED]> wrote:
  

Leon Rosenberg-3 wrote:


Could you provide some additional information?
So far 64bit machines always outperformed 32bit machines in my
personal benchmarks as well as in third party benchmarks I stumbled
upon.

So it would be great if you could provide some links or explanations.

thank you
leon

  

It's for the very simple reason: 64bit machines have 64bit address!
What is address! It's pointers if you are familiar with C, Pointers
are 64bit integers. Pointer arithmetics will deal with 64bit addressed
data. Arithmetic operations on 64bit takes app. twice long as 32bits.



Sorry, this just sounds plain wrong. If a 64 bit processor comes with
64 bit register it means that it can make an integer 64 bit addition
(long) in one operation, which is at least twice as fast as the same
operation on a 32 bit processor, and an addition of a 32 bit integer
is as fast as on a 32 bit processor, at least what you see outside of
the processor.

Further, following your argumentation, 16 bit processor is faster than
32 bit processor and 8 bit faster than 16... hell my abacus rocks.

I admit that my last course in processors is like 10 years ago, but we
actually measured the performance of the same application under 64 bit
java on a 64 bit system and 32 bit java on a 32 bit system, and guess
what, the 64 bit version outperformed the 32 bit version by nearly
10%.

Despite empirical data, the simply marketing logic tells us, that 64
bit processors are faster, at least amd and intel. The 64 bit
processors (as they were introduced) were higher priced as the 32 bit
alternatives and were shipped with larger cache and higher tacts. But
the whole discussion is pointless anyway, since there are no
comparable 32 bit processors on market anymore, and would you agree
that a 64 bit application runs faster on a 64 bit processor than a 32
bit application?


  

As this is used very many in compiled binaries pointer arithmetics,
you should expect 64bit machines will give you slower performance,
for cpu bound applications. Note that hardware clocking time also
slower than 32 machines.

However, if your application is "data intensive" (with heaps of data
caches),
larger memory can boost quite a lot. You may even get several time
or more better through put than otherwise. That's why there is a push
for 64 bit machine.

Also there is another aspect of programming skills. Many servlet programmers
don't understand underlying garbage collection algorithms. They tend to
make use lot more memory. If you control memory use smartly,
this can boost performance significantly as well!



Errm WHAT???



regards
Leon

-
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 with 8 GB memory

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joe,

Joe Nathan wrote:
> Arithmetic operations on 64bit takes app. twice long as 32bits.

You are out of your mind.

> Note that hardware clocking time also
> slower than 32 machines.

Clock speed has nothing to do with integer width.

- -chris

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

iD8DBQFGqn149CaO5/Lv0PARAjArAJ9c4cLsLAJp1n4ysPvPnqqcISGqcgCcCkK5
+Toxx7MbZA0JOOTKLaIwgUU=
=4St0
-END PGP SIGNATURE-

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



Re: Tomcat with 8 GB memory

2007-07-27 Thread Len Popp
On 7/27/07, Joe Nathan <[EMAIL PROTECTED]> wrote:
> It does in single operation, but it taks twices clock pulse than 32bit!
> You cannot perform binary adder operation in parallel. Speed of operation
> is measured with the number of clock pulse. 32bit adder may require
> something like 36 clock pulses or close numbers. 64bit require about 70
> clock
> pulses. Remember that cpu logic gates work in sync with clocks.
> Limited number of operations can be performed in a second. The
> number will change depending on your cpu clock pulse, which
> is limited to about 3.5GHz these days. That's why we want more Hz
> to get speed. That's the thing that give us the speed!

That is wrong. Integer addition *is* done in parallel by any normal
CPU. Here's a description of one type of logic circuit to do that:
http://en.wikipedia.org/wiki/Carry_look-ahead_adder
The computer I'm using to type this takes one clock cycle to add a
pair of integers that are in registers, whether they're 64, 32, 16 or
8 bits wide.
Reference: "Software Optimization Guide for AMD Family 10h
Processors", Appendix C
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/40546.pdf
-- 
Len

-
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 with 8 GB memory

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joe,

Joe Nathan wrote:
> If your logic is valid, we should be still using 16bit or 8bit machines!

The reverse is true. First of all, no home user ever bought an 8-bit
machine. The 8086 (the first Intel 16-bit machine) was eventually
replaced by the 80386 series of microprocessors -- the first 32-bit
ones. It's been a lng time since those have been available.

I think you'd have to admit that the 80386 went faster than the 8086,
and not just because of clock speed increases.

> Retail price between 64bit and 32bit not much difference.

Dell only ships the 64-bit version of Microsoft Windows Vista "Ultimate"
- -- all others are 32-bit versions. Nobody is going to pay the
difference, which ends up being around $200, to get more OS features.

- -chris

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

iD8DBQFGqn7l9CaO5/Lv0PARAl0aAJ9fN/RB/I22zDPRzXwRP3Fjt1hAdgCgpqD7
A7T64V5BKH/nyDKXq0sxCag=
=Mesx
-END PGP SIGNATURE-

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



Re: Tomcat with 8 GB memory

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joe,

Joe Nathan wrote:
> 
> Leon Rosenberg-3 wrote:
>> Sorry, this just sounds plain wrong. If a 64 bit processor comes
>> with 64 bit register it means that it can make an integer 64 bit
>> addition (long) in one operation,
> 
> It does in single operation, but it taks twices clock pulse than
> 32bit!

Okay, I think it's time someone ask /you/ to take a look at "computer
science and engineering". You ovsiouly have no idea what you are talking
about.

> You cannot perform binary adder operation in parallel. Speed of
> operation is measured with the number of clock pulse. 32bit adder may
> require something like 36 clock pulses or close numbers. 64bit
> require about 70 clock pulses.

Thank god you aren't designing microprocessors. 64-bit machines don't
use 32-bit adders. They use 64-bit adders, which is why it's virtually
identical in performance.

I'm not playing this stupid game any more. Joe Nathan is nothing but a
troll. :p

- -chris

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

iD8DBQFGqn+u9CaO5/Lv0PARAsM6AKCciFtDuM9GBDsNO8970yVy4loGZQCgpQ+p
2IBpK0zafMrryy9A6eVxD8o=
=+Ex0
-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]



Serving ActiveX from Tomcat ?

2007-07-27 Thread Dick Eastin
Hi - Sorry to be asking a dumb question; but, maybe the answer is simple and
fast and will save me even more hours.

I'm serving a dll from webapps/ROOT to IE.  I have added the mime type for
the .dll as application/octet-stream to the server's web.xml (same as
apache's
mime type).  The component seems to arrive at IE; but, does not render
visually nor recognize function/parameter access.  This has been tested on
4.0.6 and 5.5.17.  (also tried a recommended mime type
application/x-msdownload I think it was.)

It works fine served from Apache.

Any clues ?
Thanks,
Dick


-
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: Apache Portable Runtime

2007-07-27 Thread James Rome
Lakshmi said:

You have to compile libtcnative as well. 
In addition to the documentation mentioned by Rainer, also look in the
archives for the threads

"Tomcat native library Not found in Solaris 9"  and
"Tomcat 5.5, IPv6, APR, HTTP and HTTPS"

Lakshmi

---

I got the APR compiled and running, but it kills all my pages when I use it.

My Tomcat serves all my https pages with client authentication. Where do
I configure this and how? Is it different from the usual https section
in server.xml? Where do I tell it how to find my CA certificates?

Also, if this uses OpenSSL instead off Java SSL, will it still do things
like using OCSP to check presented certificates?

Thanks,
Jim

-
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 with 8 GB memory

2007-07-27 Thread Caldarale, Charles R
> From: Alexey Solofnenko [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat with 8 GB memory
> 
> I was under impression that GC does not scale linearly. That 
> means one 8GB process will be slower than two 4GB processes.

Not true.  The time of a full GC using modern algorithms depends mostly
on the number and type of live objects, not the amount of heap space.
The number and type of live (reachable) objects stays relatively
constant for most application once the ramp-up period is over.
Consequently, running a single JVM with the largest heap you can fit in
the process space is the most efficient from a GC point of view.  (Of
course, there are plenty of other reasons not to put all your eggs in
one basket.)

 - Chuck


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

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



Re: Tomcat with 8 GB memory

2007-07-27 Thread Alexey Solofnenko
No, each of two 4GB processes will have only a half of the objects under 
the same load. And I heard that GC does not scale linear with heap size. 
And this is without multi-threading performance considerations.  As 
usual, your mileage may vary and only tests can tell for sure.


- Alexey.

Caldarale, Charles R wrote:
From: Alexey Solofnenko [mailto:[EMAIL PROTECTED] 
Subject: Re: Tomcat with 8 GB memory


I was under impression that GC does not scale linearly. That 
means one 8GB process will be slower than two 4GB processes.



Not true.  The time of a full GC using modern algorithms depends mostly
on the number and type of live objects, not the amount of heap space.
The number and type of live (reachable) objects stays relatively
constant for most application once the ramp-up period is over.
Consequently, running a single JVM with the largest heap you can fit in
the process space is the most efficient from a GC point of view.  (Of
course, there are plenty of other reasons not to put all your eggs in
one basket.)

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


--

Alexey N. Solofnenko 
Pleasant Hill, CA (GMT-8 usually)


smime.p7s
Description: S/MIME Cryptographic Signature


RE: Tomcat with 8 GB memory

2007-07-27 Thread Joe Nathan



Caldarale, Charles R wrote:
> 
>> From: Alexey Solofnenko [mailto:[EMAIL PROTECTED] 
>> Subject: Re: Tomcat with 8 GB memory
>> 
>> I was under impression that GC does not scale linearly. That 
>> means one 8GB process will be slower than two 4GB processes.
> Not true.  The time of a full GC using modern algorithms depends mostly
> on the number and type of live objects, not the amount of heap space.
> The number and type of live (reachable) objects stays relatively
> constant for most application once the ramp-up period is over.
> Consequently, running a single JVM with the largest heap you can fit in
> the process space is the most efficient from a GC point of view.  (Of
> course, there are plenty of other reasons not to put all your eggs in
> one basket.)
> 

There are several factors that matters for GC: number of objects,
number of object references, size of objects. All matters! As number of
objects get bigger, it tends to have more reference. Size of objects?
This does matter when heap compression is involved, 
objects have to be moved.

In addition, keep in mind that your heap memory is on virtual memory.
While doing GC analysis, if you don't have enough main memory, this
can create caos.

I have a system that create a number of objects that allocate sizable
memory. When it hit a simple write (may read also) operation, it then goes
mad! This happens on Windows! But I don't know what's wrong with it.
For about 10 ~ 20 minutes, it stop everything and does I/O only
until the dust clears! 







-- 
View this message in context: 
http://www.nabble.com/Tomcat-with-8-GB-memory-tf4149367.html#a11839794
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat with 8 GB memory

2007-07-27 Thread Joe Nathan


Alexey Solofnenko-2 wrote:
> 
> No, each of two 4GB processes will have only a half of the objects under 
> the same load. And I heard that GC does not scale linear with heap size. 
> And this is without multi-threading performance considerations.  As 
> usual, your mileage may vary and only tests can tell for sure.
> 

It's not easy to measure gc time, especially if it is based on generational
gc algorithm which does NOT do gc for all objects. In addition, a single gc 
does not remove all obsolate objects. They are often removed at the second 
or third time gc. 

When you test, monitor IO activities as well, potentially stemming from 
virtual memory paging activities. It could be the one that makes
gc much longer.

Generally it's good to minimize object creation and use not too 
UNNECESSARILY large JVM heap. What many people practice
is to recyle objects and threads.

-- 
View this message in context: 
http://www.nabble.com/Tomcat-with-8-GB-memory-tf4149367.html#a11839991
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]