Re: Designing for Load on TomCat

2013-05-06 Thread Jakub 1983
Yogesh with a page response time of 5 seconds is it current response time or acceptable await time? if it is current response time, when was it measured, during max load, or during min load ? how many concurrent requests where sent ? why so long ? processor is busy, or communication with

tomcat jndi

2013-04-29 Thread Jakub 1983
I have read http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto.html http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html 1)I would like to ask about essence of jndi a) jndi as a whole and b) jndi in tomcat In all known to me cases jndi in tomcat and in jboss is

Re: tomcat jndi

2013-04-29 Thread Jakub 1983
-and-jca.html other question, especially concerning tomcat are still valid On Mon, Apr 29, 2013 at 9:21 AM, Jakub 1983 jjaku...@gmail.com wrote: I have read http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto.html http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html 1

Re: SEVERE: Failed to initialize end point associated with ProtocolHandler [http-bio-443]

2013-04-24 Thread Jakub 1983
James, try to set tomcat port to 1443 and check, and write us if it starts than, try to start knock knock server with default port, than change it to 443 port - http://docs.oracle.com/javase/tutorial/networking/sockets/examples/KnockKnockServer.java (link and explanation is here

Re: conf/Catalina/localhost/myWebApp.xml context file disappears

2013-04-23 Thread Jakub 1983
Mark, thx for investigation, apart from users@tomcat.apache.org I have also sent previous post with attachments to ma...@apache.org regards Jakub On Tue, Apr 23, 2013 at 1:04 PM, Mark Thomas ma...@apache.org wrote: On 21/04/2013 13:57, Jakub 1983 wrote: Mark, sorry I didn't reply so long

Re: Tomcat 7.0.33 manager - 403 Access Denied

2013-04-23 Thread Jakub 1983
try to comment out RemoteAddrValve, and check if the error still exists have you added role rolename=manager-jmx/ into users.xml ? add role rolename=manager-gui/ and try with web page, what is the error ? have you tried with bare Realm className=org.apache.catalina.realm.UserDatabaseRealm

mod_cluster session replication

2013-04-21 Thread Jakub 1983
Please confirm or deny my image/idea: mod_cluster is configured by Listener className=org.jboss.modcluster.container.catalina.standalone.ModClusterListener advertise=true/ it has nothing to do with session replication, session replication cannot be configured in Listener/ tag, if we want

Re: security-role-ref doesn't work

2013-04-21 Thread Jakub 1983
Mark, thank you very much for your clarification, regards Jakub ps anybody else interested in this topic can see here: http://docs.oracle.com/javaee/5/tutorial/doc/bncav.html http://docs.oracle.com/javaee/5/tutorial/doc/bncba.html#bncbb On Fri, Apr 19, 2013 at 11:30 PM, Mark Thomas

Re: conf/Catalina/localhost/myWebApp.xml context file disappears

2013-04-21 Thread Jakub 1983
, Apr 19, 2013 at 12:34 AM, Mark Thomas ma...@apache.org wrote: On 17/04/2013 23:46, Jakub 1983 wrote: I call ant task target name=deploy-war depends=create-war copy file=${target.dir}/${war.file} todir=${deploy.dir}/ /target application is called jdbc.war, and I create

two responses from one request - how is it possible ?

2013-04-21 Thread Jakub 1983
http://www.mulesoft.com/tomcat-connector states: Using the current arrangement, both Connectors will pass all requests to the same Engine, which will in turn pass all these requests to both of its contained web applications. This means that each request will potentially generate two responses,

Re: explanation of resource-ref in web.xml

2013-04-18 Thread Jakub 1983
: From: Jakub 1983 [jjaku...@gmail.com] Sent: Wednesday, April 17, 2013 7:26 PM To: Tomcat Users List Subject: explanation of resource-ref in web.xml What the hell is resource-ref in web.xml used for ? I use it in a context

Re: explanation of resource-ref in web.xml

2013-04-18 Thread Jakub 1983
Konstantin, thx for your reply. Do you know name of such a tool and application server which offers configuration of database connection on basis of web.xml.resource-ref ? regards Jakub On Thu, Apr 18, 2013 at 11:05 AM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2013/4/18 Jakub 1983

security-role-ref doesn't work

2013-04-18 Thread Jakub 1983
my tomcat users: role rolename=tomcat/ role rolename=role1/ role rolename=manager-gui/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat,manager-gui,admin/ user username=both password=tomcat roles=tomcat,role1/ user username=role1 password=tomcat roles=role1/

conf/Catalina/localhost/myWebApp.xml context file disappears

2013-04-17 Thread Jakub 1983
when I copy new version of myWebApp.war into webapps directory my context from conf/Catalina/localhost/ disappears (this context was manually created by me), maybe tomcat first deletes war, and also delete corresponding context file, is there any way to prevent it ? how should such update be done

Re: conf/Catalina/localhost/myWebApp.xml context file disappears

2013-04-17 Thread Jakub 1983
from C:\test\catalina_base\conf\Catalina\localhost Regards Jakub On Wed, Apr 17, 2013 at 2:14 PM, André Warnier a...@ice-sa.com wrote: Jakub 1983 wrote: when I copy new version of myWebApp.war into webapps directory my context from conf/Catalina/localhost/ disappears (this context

context.xml.Resource and web.xml.resource-ref

2013-04-17 Thread Jakub 1983
such scenario works fine for me: jdbc.xml in C:\test\catalina_base\conf\Catalina\localhost Context Resource name=jdbc/Test auth=Container type=javax.sql.DataSource username=sa password= driverClassName=org.h2.Driver url=jdbc:h2:tcp://localhost/databases/test1

Re: conf/Catalina/localhost/myWebApp.xml context file disappears

2013-04-17 Thread Jakub 1983
tomcat. Regards Jakub On Wed, Apr 17, 2013 at 10:04 PM, Mark Thomas ma...@apache.org wrote: On 17/04/2013 10:35, Jakub 1983 wrote: when I copy new version of myWebApp.war into webapps directory my context from conf/Catalina/localhost/ disappears (this context was manually created by me

resource-ref in web.xml

2013-04-17 Thread Jakub 1983
can I define database connection only in web.xml, without using context.xml files ? can I pass database url, login and password into resource-ref ? when I define database conn in context.xml, resource-ref is not needed at all, so what is it actually for ? regards Jakub

explanation of resource-ref in web.xml

2013-04-17 Thread Jakub 1983
What the hell is resource-ref in web.xml used for ? My imagination is as follows, please confirm or deny it. resource-ref is part of servlet spec, not tomcat spec. context.xml and it's resource declaration is private concept of tomcat, not described by any external specificatin, jsr, etc.

Re: explanation of resource-ref in web.xml

2013-04-17 Thread Jakub 1983
: From: Jakub 1983 [jjaku...@gmail.com] Sent: Wednesday, April 17, 2013 7:26 PM To: Tomcat Users List Subject: explanation of resource-ref in web.xml What the hell is resource-ref in web.xml used for ? I use it in a context, to define

practical scenarios

2013-04-16 Thread Jakub 1983
When is it useful to define context.xml in some other place than at /META-INF/context.xml inside the application files ? When do you usually do it ? Is it frequently used ? I am not asking about theoretical possibilities, but how are they used in practical scenarios. Most common case I encounter

Re: path attribute from Context.xml is not working

2013-04-15 Thread Jakub 1983
the Hosthttp://tomcat.apache.org/tomcat-7.0-doc/config/host.html's appBase which was true in my case, but somehow I missed unfulfilled precondition. Thx once again, regards , Jakub On Mon, Apr 15, 2013 at 1:28 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Jakub 1983 [mailto:jjaku

path attribute from Context.xml is not working

2013-04-14 Thread Jakub 1983
tomcat is started by script: set CATALINA_HOME=C:\test\apache-tomcat-7.0.39 set CATALINA_BASE=C:\test\catalina_base call C:\test\apache-tomcat-7.0.39\bin\catalina.bat start in file *someConf*.xml under directory C:\test\catalina_base\conf\Catalina\localhost I define path: Context

Re: connectors - what are JK, AJP, APR

2013-04-10 Thread Jakub 1983
. On 4/9/13 11:03 AM, Jakub 1983 wrote: 2) what does native connectors mean here ? A native connector is the native (i.e. non-Java) component that actually runs in the web server. This piece of the puzzle is completely outside of Tomcat. 3) what is JK ? and what is mod_proxy ? are both of them

connectors - what are JK, AJP, APR

2013-04-09 Thread Jakub 1983
) http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html states: The *AJP Connector* element represents a *Connector* component that communicates with a web connector via the AJP protocol. This is used for cases where you wish to invisibly integrate Tomcat into an existing (or new) Apache

Re: connectors - what are JK, AJP, APR

2013-04-09 Thread Jakub 1983
yes, it was very helpful, great thanks. On Tue, Apr 9, 2013 at 6:20 PM, André Warnier a...@ice-sa.com wrote: Oh my.. Jakub 1983 wrote: ) http://tomcat.apache.org/**tomcat-7.0-doc/config/ajp.htmlhttp://tomcat.apache.org/tomcat-7.0-doc/config/ajp.htmlstates: The *AJP Connector* element

Re: tomcat jmx disabled by default ?

2013-04-08 Thread Jakub 1983
/2013 7:54 AM, Jakub 1983 wrote: Neven, thx for your reply, so my question is why when I start my own main without passing -Dcom.sun.management.* properties I can connect to it with jconsole, but I cannot connect with jconsole to tomcat (although it is visible in jconsole

tomcat jmx disabled by default ?

2013-04-07 Thread Jakub 1983
why do I have to enable jmx with command *set CATALINA_OPTS=-Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=%my.jmx.port% \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false*

Re: tomcat jmx disabled by default ?

2013-04-07 Thread Jakub 1983
, 2013 5:59 AM, Jakub 1983 jjaku...@gmail.com wrote: why do I have to enable jmx with command *set CATALINA_OPTS=-Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=%my.jmx.port% \ -Dcom.sun.management.jmxremote.ssl=false