Re: Dynamic roles web.xml
Hi! and good morning (but probably we 're on different continents) I don't undertand the last pos where you say. I had the impression he already had.. I don't get how posting this helps, i must have misunderstood something.. Can you explain please? Anyway thanks for accurate explication. I'll go studing how to write the filter class I think that as you say the right way is to have at least one role mapped on web.xml, forbid to delete it from database and ensure all user have this rol. So I can still use the yet configured container based authentication. Than check for permission in each page in the filter class, or, i was thinking check it directly in the jsp. I was thinking write a taglib to do so. (that should check if the user has at least a role that has at least one of the permissions for this page) Wich is the difference between jsp solution and filter class solution? Is filter class more secure? Thanks a lot Ciao! PS . good italian. What does it mean schete? On 3/17/06, Mark Lowe [EMAIL PROTECTED] wrote: On 3/17/06, Mark Space [EMAIL PROTECTED] wrote: Alessandro Colantoni wrote: Thanks for rapid answer! What do you mean with filter the roles of second level. How can I do that? if they are not in the auth-constraint and in the role name list they can't access. have O to write a filter class? in this class retrieve the role of the user and if is one of the second level skip the container authentication? I'm in the right way or I misunderstand all? Or you could try this: http://tomcat.apache.org/tomcat-4.1-doc/realm-howto.html I had the impression he already had.. I don't get how posting this helps, i must have misunderstood something.. Can you explain please? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat cluster and redirecting to the same address
We mark all SessionID with a node marker! Setup with Engine jvmRoute=node1 The mod_jk or mod_proxy_ajp make then the correct routing. The algo extract the worker name from cookie or url rewrite parameter jsessionid. Read Cluster Doc and mod:jk doc http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html http://tomcat.apache.org/connectors-doc/ regards Peter Am 17.03.2006 um 03:16 schrieb Michael Jouravlev: Hello! How does redirect-after-post pattern work in clustered environment? In my case I need to redirect to exactly the same location, where the initial POST request was made from. How does this work in cluster, if at all? Afaik, the original address is load balancer's address. When requests reaches the application, all application gets is the address of a specific server that executes the request. Is it possible to find out the original location visible to external app? Or am I totally offbase here? Does this depends on server (Tomcat or not) or load balancer? Apparently, load balancer has to be tightly integrated with Tomcat to provide information about original location. I do not want to use referer. I have not tried to set up Tomcat in cluster yet ;) Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat clustering
Yes and no! Speak with your network admin that the multicast send to other global machine. Not working over normal internet ways! I thing clustering is made for local network failover. What you need are cluster domains. Gropus of clusters with a separate loadbalancer to route request over you country boundaries. That works fine :-) Peter Am 17.03.2006 um 00:02 schrieb Larry Mulcahy: My question is: Is it reasonable to expect Tomcat clustering to work for servers not in the same network? Widely separated in different states? I have read the docs but don't understand the whole multicast thing. I have set up two servers with clustering enabled on the same subnet and they see each other, no problem. Then I tried to add another server on a different subnet, no dice. I am experimenting with some configuration settings like the multicast address but would like to hear from someone who knows 'yes this can be done' before I invest too much more time. -- Larry Mulcahy Good system software should be free, like air - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk missing UTF-8 query (GET)
look at this: http://www.nxnx.net/mix/%E4%BD%A0%E5%A5%BD and http://www.nxnx.net:8080/nxnx/mix/%E4%BD%A0%E5%A5%BD tomcat standalone is fine, but through mod_jk, it seems missing the UTF-8 param, I tried: = Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 URIEncoding=UTF-8 / not working, also added: JkOptions +ForwardURIEscaped not working any body can help? thank you very very much - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.28 Clustering and Load Balancing
Many thanks! But the current tomcat 5.5 documentation find here http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html I thing it exists many good reasons to migrate from 5.0 to tomcat 5.5.16 if really using clustering today :-) Regards Peter Am 16.03.2006 um 21:51 schrieb Filip Hanik - Dev Lists: Peter Rossbach has done a great job documenting most of it here. http://tomcat.apache.org/tomcat-5.0-doc/cluster-howto.html Filip Dadyala, Manjeet S wrote: I’m new to Tomcat and am in the process of investigating the configuration of Tomcat 5.0.28 on RedHat Linux (AS 3) and Load Balancing. The documentation that I’ve come across at http:// tomcat.apache.org http://tomcat.apache.org/ most often deals with Tomcat version 5.5. Could someone assist in directing me to documentation for the 5.0.28 release and if possible specific to RedHat AS 3? Our inquires to RedHat Support tell us to go to http:// tomcat.apache.org http://tomcat.apache.org/, hence my effort to send this to the distribution. We’d like to implement testing across 2 or more nodes using as the RPM distributed by RedHat doesn’t support vertical clustering – a cluster on a single node. Here’s what I’m looking into testing: - Hardware Load Balancer - Tomcat instances across 2 or 3 nodes - Clustering Thanks in advance for your feedback and replies. */Manjeet Dadyala/* /Sr. Applications Ops Engineer/ */veri/**/z/**/on/**/business/* Hosting Technical Operations [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk missing UTF-8 query (GET)
it should be: UTF-8%E4%BD%A0%E5%A5%BD你好. == with the query: http://www.nxnx.net:8080/nxnx/mix/%E4%BD%A0%E5%A5%BD but through mod_jk i can only get: === UTF-8 T__T
Re: How to retrieve an user Principal?
2006/3/16, Mladen Turk [EMAIL PROTECTED]: Yes. Servlet spec 2.4 Thank you very much. Persons like you make me loosing faith in the Open Source. I think I'll call the guys at IBM... -- TREMALNAIK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to retrieve an user Principal?
Tremal Naik wrote: 2006/3/16, Mladen Turk [EMAIL PROTECTED]: Yes. Servlet spec 2.4 Thank you very much. Persons like you make me loosing faith in the Open Source. I think I'll call the guys at IBM... Go and troll somewhere else. I told you that JBoss uses thread local storage. 1. Request comes in. 2. According to the Servlet spec the request is parsed and user determined. 3. It is added to the thread local. 4. getPrincipal() ... return (Principal) threadPrincipal.get(); So it does all that for you. Without J2EE container, you'll need to use the the Servlet spec. -- Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to retrieve an user Principal?
2006/3/17, Mladen Turk [EMAIL PROTECTED]: Go and troll somewhere else. sorry, I thought you where pissing on me. I didn't understand your real intentions. I will manage the request to get what I'm looking for. Thanks, -- TREMALNAIK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrade problem to Tomcat 5.5.16, login with Realm fails
Thank you for the help! The problem was that I was using '*' as role name in web.xml, as you probobly guessed. Best Regards Joacim Turesson Velpi wrote: I'm currently running my webapplication using Tomcat 5.5.12 and it works great. When I upgrade to Tomcat 5.5.16 I'm no longer able to login in to the webapplication using Form based (or Basic) login with Memory Realm (in my development area). maybe it has something to do with this: http://issues.apache.org/bugzilla/show_bug.cgi?id=15570 --Velpi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic roles web.xml
On 3/17/06, Alessandro Colantoni [EMAIL PROTECTED] wrote: Hi! and good morning (but probably we 're on different continents) I don't undertand the last pos where you say. I had the impression he already had.. I don't get how posting this helps, i must have misunderstood something.. Can you explain please? Anyway thanks for accurate explication. I'll go studing how to write the filter class I think that as you say the right way is to have at least one role mapped on web.xml, forbid to delete it from database and ensure all user have this rol. So I can still use the yet configured container based authentication. Than check for permission in each page in the filter class, or, i was thinking check it directly in the jsp. I was thinking write a taglib to do so. (that should check if the user has at least a role that has at least one of the permissions for this page) Wich is the difference between jsp solution and filter class solution? Is filter class more secure? Its more secure in that you don't depend on jsp folk on getting it right, given that your having to do some view controller stuff in your db it would seem a shame not to control this in a filter... You can also disactivate the filter during development and let jsp folk write decent markup, without giving them the secondary problem of secuirty logic. You could just write a simple bean (as an other option) and use the trusty useBean tag, but you'll be depending on jsp folk on getting this right.. A filter is just tidier.. Thanks a lot Ciao! PS . good italian. What does it mean schete? My bad spelling for scelte mark On 3/17/06, Mark Lowe [EMAIL PROTECTED] wrote: On 3/17/06, Mark Space [EMAIL PROTECTED] wrote: Alessandro Colantoni wrote: Thanks for rapid answer! What do you mean with filter the roles of second level. How can I do that? if they are not in the auth-constraint and in the role name list they can't access. have O to write a filter class? in this class retrieve the role of the user and if is one of the second level skip the container authentication? I'm in the right way or I misunderstand all? Or you could try this: http://tomcat.apache.org/tomcat-4.1-doc/realm-howto.html I had the impression he already had.. I don't get how posting this helps, i must have misunderstood something.. Can you explain please? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic roles web.xml
On 3/17/06, Mark Lowe [EMAIL PROTECTED] wrote: On 3/17/06, Alessandro Colantoni [EMAIL PROTECTED] wrote: Hi! and good morning (but probably we 're on different continents) Assiming you're in italy, we're in the same country.. I don't undertand the last pos where you say. I had the impression he already had.. I don't get how posting this helps, i must have misunderstood something.. Can you explain please? Anyway thanks for accurate explication. I'll go studing how to write the filter class I think that as you say the right way is to have at least one role mapped on web.xml, forbid to delete it from database and ensure all user have this rol. So I can still use the yet configured container based authentication. Than check for permission in each page in the filter class, or, i was thinking check it directly in the jsp. I was thinking write a taglib to do so. (that should check if the user has at least a role that has at least one of the permissions for this page) Wich is the difference between jsp solution and filter class solution? Is filter class more secure? I did forget to outline the advantages of defining this stuff in jsp.. You don't need to have a reference to the page in your database.. Which i guess is a big advantage.. Again its your choice.. Mark Its more secure in that you don't depend on jsp folk on getting it right, given that your having to do some view controller stuff in your db it would seem a shame not to control this in a filter... You can also disactivate the filter during development and let jsp folk write decent markup, without giving them the secondary problem of secuirty logic. You could just write a simple bean (as an other option) and use the trusty useBean tag, but you'll be depending on jsp folk on getting this right.. A filter is just tidier.. Thanks a lot Ciao! PS . good italian. What does it mean schete? My bad spelling for scelte mark On 3/17/06, Mark Lowe [EMAIL PROTECTED] wrote: On 3/17/06, Mark Space [EMAIL PROTECTED] wrote: Alessandro Colantoni wrote: Thanks for rapid answer! What do you mean with filter the roles of second level. How can I do that? if they are not in the auth-constraint and in the role name list they can't access. have O to write a filter class? in this class retrieve the role of the user and if is one of the second level skip the container authentication? I'm in the right way or I misunderstand all? Or you could try this: http://tomcat.apache.org/tomcat-4.1-doc/realm-howto.html I had the impression he already had.. I don't get how posting this helps, i must have misunderstood something.. Can you explain please? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic roles web.xml
Hi! again!! Of course I'm Italian, but at moment I'm living in Spain for work, so just the same continent .! At the end I will choose the jsp solution with taglib (I'm gonna write my permission taglib now!) 'cause reference pages in database can be too much work and in some case I have permissions at field level. I think I yet found the solution to make such a taglib generic to re use in all future applications I'll do something like that permissions:present list=perm1,perm2,perm3 !-- write your jsp piece -- /permissions:present permissions:notPresent list=perm1,perm2,perm3 !-- write your jsp piece -- /permissions:notPresent That seems more easy to maintain cause in my application I have just to maintain the relationship between roles and permissions Thanks a lot for your help! I hope you enjoy in my country Alessandro On 3/17/06, Mark Lowe [EMAIL PROTECTED] wrote: On 3/17/06, Mark Lowe [EMAIL PROTECTED] wrote: On 3/17/06, Alessandro Colantoni [EMAIL PROTECTED] wrote: Hi! and good morning (but probably we 're on different continents) Assiming you're in italy, we're in the same country.. I don't undertand the last pos where you say. I had the impression he already had.. I don't get how posting this helps, i must have misunderstood something.. Can you explain please? Anyway thanks for accurate explication. I'll go studing how to write the filter class I think that as you say the right way is to have at least one role mapped on web.xml, forbid to delete it from database and ensure all user have this rol. So I can still use the yet configured container based authentication. Than check for permission in each page in the filter class, or, i was thinking check it directly in the jsp. I was thinking write a taglib to do so. (that should check if the user has at least a role that has at least one of the permissions for this page) Wich is the difference between jsp solution and filter class solution? Is filter class more secure? I did forget to outline the advantages of defining this stuff in jsp.. You don't need to have a reference to the page in your database.. Which i guess is a big advantage.. Again its your choice.. Mark Its more secure in that you don't depend on jsp folk on getting it right, given that your having to do some view controller stuff in your db it would seem a shame not to control this in a filter... You can also disactivate the filter during development and let jsp folk write decent markup, without giving them the secondary problem of secuirty logic. You could just write a simple bean (as an other option) and use the trusty useBean tag, but you'll be depending on jsp folk on getting this right.. A filter is just tidier.. Thanks a lot Ciao! PS . good italian. What does it mean schete? My bad spelling for scelte mark On 3/17/06, Mark Lowe [EMAIL PROTECTED] wrote: On 3/17/06, Mark Space [EMAIL PROTECTED] wrote: Alessandro Colantoni wrote: Thanks for rapid answer! What do you mean with filter the roles of second level. How can I do that? if they are not in the auth-constraint and in the role name list they can't access. have O to write a filter class? in this class retrieve the role of the user and if is one of the second level skip the container authentication? I'm in the right way or I misunderstand all? Or you could try this: http://tomcat.apache.org/tomcat-4.1-doc/realm-howto.html I had the impression he already had.. I don't get how posting this helps, i must have misunderstood something.. Can you explain please? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic roles web.xml
On 3/17/06, Alessandro Colantoni [EMAIL PROTECTED] wrote: Hi! again!! Of course I'm Italian, but at moment I'm living in Spain for work, so just the same continent .! At the end I will choose the jsp solution with taglib (I'm gonna write my permission taglib now!) 'cause reference pages in database can be too much work and in some case I have permissions at field level. I think I yet found the solution to make such a taglib generic to re use in all future applications I'll do something like that permissions:present list=perm1,perm2,perm3 !-- write your jsp piece -- /permissions:present permissions:notPresent list=perm1,perm2,perm3 !-- write your jsp piece -- /permissions:notPresent Hang on!!! You've an admin form where you have dynamic roles, right? And you've no means of knowing what these will be.. And what they are denying access to.. Doing this with your proposed taglib wont help solve this.. Your tag or jsp bean is going to have to ask the database which roles have what access to a given page.. Your stuck needing a reference to the user action/jsp in the database. You could have a properties file mapping jsp's to a key and keep that in the db. But you're going to need this to have truely dynamic roles to view access control.. Mark That seems more easy to maintain cause in my application I have just to maintain the relationship between roles and permissions Thanks a lot for your help! I hope you enjoy in my country Alessandro On 3/17/06, Mark Lowe [EMAIL PROTECTED] wrote: On 3/17/06, Mark Lowe [EMAIL PROTECTED] wrote: On 3/17/06, Alessandro Colantoni [EMAIL PROTECTED] wrote: Hi! and good morning (but probably we 're on different continents) Assiming you're in italy, we're in the same country.. I don't undertand the last pos where you say. I had the impression he already had.. I don't get how posting this helps, i must have misunderstood something.. Can you explain please? Anyway thanks for accurate explication. I'll go studing how to write the filter class I think that as you say the right way is to have at least one role mapped on web.xml, forbid to delete it from database and ensure all user have this rol. So I can still use the yet configured container based authentication. Than check for permission in each page in the filter class, or, i was thinking check it directly in the jsp. I was thinking write a taglib to do so. (that should check if the user has at least a role that has at least one of the permissions for this page) Wich is the difference between jsp solution and filter class solution? Is filter class more secure? I did forget to outline the advantages of defining this stuff in jsp.. You don't need to have a reference to the page in your database.. Which i guess is a big advantage.. Again its your choice.. Mark Its more secure in that you don't depend on jsp folk on getting it right, given that your having to do some view controller stuff in your db it would seem a shame not to control this in a filter... You can also disactivate the filter during development and let jsp folk write decent markup, without giving them the secondary problem of secuirty logic. You could just write a simple bean (as an other option) and use the trusty useBean tag, but you'll be depending on jsp folk on getting this right.. A filter is just tidier.. Thanks a lot Ciao! PS . good italian. What does it mean schete? My bad spelling for scelte mark On 3/17/06, Mark Lowe [EMAIL PROTECTED] wrote: On 3/17/06, Mark Space [EMAIL PROTECTED] wrote: Alessandro Colantoni wrote: Thanks for rapid answer! What do you mean with filter the roles of second level. How can I do that? if they are not in the auth-constraint and in the role name list they can't access. have O to write a filter class? in this class retrieve the role of the user and if is one of the second level skip the container authentication? I'm in the right way or I misunderstand all? Or you could try this: http://tomcat.apache.org/tomcat-4.1-doc/realm-howto.html I had the impression he already had.. I don't get how posting this helps, i must have misunderstood something.. Can you explain please? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deadlock - Out of Threads - Strange Exception - OutOfMemory - Server Death. Bug in org.apache.naming.resources.ProxyDirContext.cacheLoad?
This is called thread hi-jacking :-) However, without knowing anything about your jdo implementation I can't say if org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:645) - waiting to lock 0x5b775de0 (a and TP-Processor17 daemon prio=1 tid=0x082df898 nid=0x3379 waiting for monitor entry [0xbc7fd000..0xbc7ff4d4] at org.jpox.store.expression.TableExprAsJoins.referenceColumn(TableExprAsJoins.java:65) is normal behaviour or an indication for a deadlock. What I can say, is that the 2.4.x kernel could be a problem if you have more then 800 threads. Do you have NPTL or the standart linux threading? I don't know your linux distro, but most 2.4.x kernels came out without NPTL support, is updating to 2.6.x an option for you? regards leon On 3/17/06, Roger Keays [EMAIL PROTECTED] wrote: Hi Leon, Recently I've noticed similar deadlocks on my tomcat server. In my case, the server just hangs with no warning even though there is plenty of memory available. I tried the following to locate the problem, but it has all been in vain: * upgrade jdk from 1.5.0.1 to 1.5.0.6 * upgrade tomcat from 5.5.7 to 5.5.16 * probing with JMX * rebooting * running the server as root * increasing the AJP thread maximums * increasing the max postgresql connections * removing the HTTP connector and only using AJP * removing the AJP connector and only using HTTP When the deadlock occurs, I cannot even probe the JVM with JMX. It is fairly repeatable though - all I have to do is load about a dozen pages at once (presumably this is about 80 - 100 GET requests). I also noticed by running 'top' that a single java process sits on top of the list, while in normal operation there are a few java processes running at the top of the list. When I saw your post, I tried sending SIGKILL and got a bunch of stacktraces like those attached below. Unlike your case though, I get practically no warning in the catalina log of any potential problems. My environment is * Linux version 2.4.27-2-686 * jdk 1.5.0.6 * tomcat 5.5.16 * jvm args -Xmx256m * glibc 2.3.2 Any suggestions on this one would be helpful. Thanks! Roger Begin stacktrace snippets: TP-Processor14 daemon prio=1 tid=0x08402b38 nid=0x3376 waiting for monitor entry [0xbcdff000..0xbcdff754] at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:645) - waiting to lock 0x5b775de0 (a org.jpox.PersistenceManagerFactoryImpl) at net.ninthave.multisites.core.DAO.init(DAO.java:82) at net.ninthave.multisites.filters.RequestFilter.doFilter(RequestFilter.java:137) TP-Processor17 daemon prio=1 tid=0x082df898 nid=0x3379 waiting for monitor entry [0xbc7fd000..0xbc7ff4d4] at org.jpox.store.expression.TableExprAsJoins.referenceColumn(TableExprAsJoins.java:65) at org.jpox.store.query.QueryStatement$QueryExpression.toString(QueryStatement.java:1147) at org.jpox.store.query.QueryStatement.selectQueryExpression(QueryStatement.java:357) - locked 0x5db8db60 (a org.jpox.store.query.QueryStatement) at org.jpox.store.query.QueryStatement.select(QueryStatement.java:261) - locked 0x5db8db60 (a org.jpox.store.query.QueryStatement) at org.jpox.store.query.QueryStatement.select(QueryStatement.java:274) - locked 0x5db8db60 (a org.jpox.store.query.QueryStatement) at org.jpox.store.query.QueryStatement.select(QueryStatement.java:287) - locked 0x5db8db60 (a org.jpox.store.query.QueryStatement) at org.jpox.store.mapping.Mappings.selectMapping(Mappings.java:50) at org.jpox.store.rdbms.extent.ClassTableExtent.newResultObjectFactory(ClassTableExtent.java:254) at org.jpox.store.query.JDOQLQuery.compile(JDOQLQuery.java:615) at org.jpox.store.query.JDOQLQuery.performExecute(JDOQLQuery.java:654) at org.jpox.store.query.Query.executeWithMap(Query.java:868) at org.jpox.store.query.Query.executeWithArray(Query.java:848) at org.jpox.store.query.Query.execute(Query.java:793) at cashflowclub.Helper.getNextEvent(Helper.java:44) TP-Processor18 daemon prio=1 tid=0x084e9a90 nid=0x337a runnable [0xbc5ff000..0xbc5ff554] at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at java.io.BufferedInputStream.read(BufferedInputStream.java:313) - locked 0x5bca9a08 (a java.io.BufferedInputStream) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:607) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:545)
keeping same session via apache2 mod_jk2 and tomcat5
Hi All. Have been looking for a few days now for a fix for this one issue that I just cannot get around.. Basically If I run http://www.greenlightproductions.co.uk/servlets/SessionExample The session ID keeps changing if you refresh the page (same goes for all other servlet code I been using you login once logged in session info lost as in new session ID assigned) but if I go to port 8180 it works perfect http://www.greenlightproductions.co.uk:8180/servlets/SessionExample the session ID remains the same no matter how much i refresh. I have been looking all over google for an answer for this and most of it is to do with load balancing tomcat and getting same session ID :( I am sure others have hit this issue before and it must be a tom cat config issue (well for the apache listener) here is some of my config. ### /etc/apache2/mods-enabled/jk2.load LoadModule jk2_module /usr/lib/apache2/modules/mod_jk2.so ### /etc/apache2/mods-enabled/jk2.conf # To enable mod_jk2, customize workers2.properties* from # /usr/share/doc/libapache2-mod-jk2/examples and copy it to # /etc/apache2/workers2.properties. Then uncomment the following line: JkSet config.file /etc/apache2/workers2.properties # Where to put jk logs #JkLogFile /var/log/apache2/mod_jk.log # Set the jk log level [debug/error/info] #JkLogLevelinfo # Select the log format #JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicate to send SSL KEY SIZE, #JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat set the request format #JkRequestLogFormat %w %V %T # Globally deny access to the WEB-INF directory LocationMatch '.*WEB-INF.*' AllowOverride None deny from all /LocationMatch ### /etc/apache2/workers2.properties # # This is the minimal JK2 connector configuration file. # [logger] info=Native logger level=ERROR [config:] file=${serverRoot}/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. debug=0 [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=anonymous debug=0 [workerEnv:] info=Global server options timing=0 debug=0 [lb:lb] info=Default load balancer. debug=0 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 #tomcatId=tomcat1 tomcatId=localhost:8009 keepalive=1 [uri:/admin] info=Tomcat HTML based administration web application. debug=0 [uri:/manager] info=A scriptable management web application for the Tomcat Web Server. debug=0 [uri:/jsp-examples] info=JSP 2.0 Examples. debug=0 [uri:/servlets-examples] tomcatId = jvmRoute info=Servlet 2.4 Examples. debug=0 [uri:/*.jsp] info=JSP Extension mapping. debug=0 [uri:/servlets/*] worker=ajp13:localhost:8009 ### snippets of /etc/tomcat5/server.xml Server port=8005 shutdown=SHUTDOWN debug=0 !--apache listne added-- Listener className=org.apache.jk.config.ApacheConfig modJk=/usr/lib/apache2/modules/mod_jk2.so WorkersConfig=/etc/apache2/workers2.properties / Listener className=org.apache.jk.config.ApacheConfig append=true forwardAll=false modJk=/usr/lib/apache2/modules/mod_jk2.so WorkersConfig=/etc/apache2/workers2.properties / ... !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8180 -- Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8180 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false / ... Host name=www.greenlightproductions.co.uk debug=0 appBase=//servlets/ unpackWARs=true autoDeploy=true Context path=/servlets docBase=greenlight debug=0 reloadable=true/ Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=true maxActiveSessions=30 minIdleSwap=60 maxIdleSwap=60 maxIdleBackup=60 Store className=org.apache.catalina.session.FileStore directory=/xxx//log// !--Store className=org.apache.catalina.session.JDBCStore driverName= org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/tomcat?user=amp;password=x sessionTable=tomcat$sessions sessionIdCol=id sessionDataCol=data sessionValidCol=valid sessionMaxInactiveCol=maxinact ive sessionLastAccessedCol=lastaccess checkInterval=60 debug=99 / -- /Manager parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=greenlight_log. suffix=.txt pa ttern=common resolveHosts=true/ /Host ###
SSL/CGI variables question
Apologies if this has been asked before: I'm trying to run a perl cgi script in a standalone tomcat container with ssl turned on. With the script running under apache, an environment variable (SSL_CLIENT_S_DN) is set with the DN from the connecting client's certificate. Is is possible to pick up a similar environment variable with the cgi script running under tomcat? I've looked at the list of cgi variables that are set and it isn't amongst them. I've looked around for a way to do this but can't seem to find anything. Any help would be appreciated. Stefan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat clustering
actually, the answer is no, even if you enable multicast over WAN, you are dealing with some serious security issues, cause the the transmission of the data is not encrypted and you are facing a serious liability. For TC6 we have separated out the comm protocol from the replication logic, and WAN replication is one of the features on the list, doing this over SSL if you are not on a private network. So we are little away from making this happen, but it is on the radar. Filip Peter Rossbach wrote: Yes and no! Speak with your network admin that the multicast send to other global machine. Not working over normal internet ways! I thing clustering is made for local network failover. What you need are cluster domains. Gropus of clusters with a separate loadbalancer to route request over you country boundaries. That works fine :-) Peter Am 17.03.2006 um 00:02 schrieb Larry Mulcahy: My question is: Is it reasonable to expect Tomcat clustering to work for servers not in the same network? Widely separated in different states? I have read the docs but don't understand the whole multicast thing. I have set up two servers with clustering enabled on the same subnet and they see each other, no problem. Then I tried to add another server on a different subnet, no dice. I am experimenting with some configuration settings like the multicast address but would like to hear from someone who knows 'yes this can be done' before I invest too much more time. --Larry Mulcahy Good system software should be free, like air - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting error with native library under Sun Solaris
Stephan Faust wrote: Hi! I use Tomcat 5.5.15 on Sun Solaris 10 with tomcat native library. Address ist already in use... This was fixed with 5.5.16, so use the 5.5.16 and tomcat-native 1.1.2 Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: getting error with native library under Sun Solaris
Hi! Sorry, but the error is still in tomcat 5.5.16 and tomcat-native 1.1.2. Regards, Stephan -Ursprüngliche Nachricht- Von: Mladen Turk [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 17. März 2006 14:17 An: Tomcat Users List Betreff: Re: getting error with native library under Sun Solaris Stephan Faust wrote: Hi! I use Tomcat 5.5.15 on Sun Solaris 10 with tomcat native library. Address ist already in use... This was fixed with 5.5.16, so use the 5.5.16 and tomcat-native 1.1.2 Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat clustering
So, wouldn't the answer really be Yes it will work (technically it is feasible), with several caveats, namely, multicast is typically not enabled on WANs, and the transmission protocol for replication is not secure. It boils down to a network problem - and if you had a secure VPN over WAN which would carry multicast, it work be technically feasible and as secure as your VPN. ? Tim -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 8:16 AM To: Tomcat Users List Subject: Re: Tomcat clustering actually, the answer is no, even if you enable multicast over WAN, you are dealing with some serious security issues, cause the the transmission of the data is not encrypted and you are facing a serious liability. For TC6 we have separated out the comm protocol from the replication logic, and WAN replication is one of the features on the list, doing this over SSL if you are not on a private network. So we are little away from making this happen, but it is on the radar. Filip Peter Rossbach wrote: Yes and no! Speak with your network admin that the multicast send to other global machine. Not working over normal internet ways! I thing clustering is made for local network failover. What you need are cluster domains. Gropus of clusters with a separate loadbalancer to route request over you country boundaries. That works fine :-) Peter Am 17.03.2006 um 00:02 schrieb Larry Mulcahy: My question is: Is it reasonable to expect Tomcat clustering to work for servers not in the same network? Widely separated in different states? I have read the docs but don't understand the whole multicast thing. I have set up two servers with clustering enabled on the same subnet and they see each other, no problem. Then I tried to add another server on a different subnet, no dice. I am experimenting with some configuration settings like the multicast address but would like to hear from someone who knows 'yes this can be done' before I invest too much more time. --Larry Mulcahy Good system software should be free, like air - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: getting error with native library under Sun Solaris
Stephan Faust wrote: Hi! Sorry, but the error is still in tomcat 5.5.16 and tomcat-native 1.1.2. Right. I committed the fix yesterday. See: http://cvs.apache.org/viewcvs.cgi?rev=386278view=rev Just wondering, since you have TC 5.5.16 and native 1.1.2 will you be willing to check the most recent .jar? Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod JK Connector Error Codes ?
I have Apache(2.0.55) and Tomcat (5.5.12) connected via the Mod JK (1.2.15) connector, setup and running on a Linux RedHat Enterprise Edition. On startup of Apache I get the following error in my Mod_JK.log file: [Fri Mar 17 13:51:46 2006] [error] init_jk::mod_jk.c (2370): Initializing shm:var/www/tomcat/ROOT errno=2 [Fri Mar 17 13:51:47 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm:var/www/tomcat/ROOT errno=2 [Fri Mar 17 13:51:47 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm:var/www/tomcat/ROOT errno=2 I have been trying to find what this errno=2 is actually refering too but can not find any documentation containing the list of error codes for the Mod JK connector. Although I get this error the website seems to function correctly. Can somebody please tell me what error code 2 actually is ? Or better still refer me to a list of all the Mod JK error codes ? Many thanks Neil This email message contains confidential information and is intended for the use of its intended recipient only. Access to this email by anyone else is unauthorised. If you are not the intended recipient you are hereby notified that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If this communication has been sent to you in error, please notify us immediately. Action Information Management Ltd. 129 Devizes Road, Hilperton, Trowbridge, Wiltshire BA14 7SZ. Tel: +44 (0) 1225 711200 Fax: +44 (0) 1225 711222 Website www.aimltd.co.uk email: [EMAIL PROTECTED]
Re: Problem Starting Tomcat
Hi, I got this problem yesterday at the morning, but during the evening it was working well, and when reboot the machine, it got the same problem. The port 8005 is been used by another program, but in my server.xml I can't see nothing using the port 8005. I'm using it on Windows XP, and tomcat 5.0.28... This is my server.xml... ?xml version='1.0' encoding='utf-8'? Server debug=9 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service debug=9 name=Catalina Connector acceptCount=100 connectionTimeout=4 debug=9 disableUploadTimeout=true port=81 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine debug=9 defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=localhost_log. suffix=.txt timestamp=true verbosity=4/ /Host Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=catalina_log. suffix=.txt timestamp=true verbosity=4/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=9/ /Engine /Service /Server Thanks, Marco - Original Message - From: Neil Sherman [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; Marco Aurélio Seraphim da Silva [EMAIL PROTECTED] Sent: Friday, March 17, 2006 12:07 PM Subject: RE: Problem Starting Tomcat Marco, This sounds as if Tomcat is attempting to bind to a port that is already in use. You should check your server.xml file to see which ports Tomcat is attempting to bind too, you can then check to see if this port is already in use by running: Netstat -a Has this setup worked previously ? If so is tomcat already running ? How are you starting tomcat ? And under what OS ? Neil -Original Message- From: Marco Aurélio Seraphim da Silva [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 15:04 To: users@tomcat.apache.org Subject: Problem Starting Tomcat When I Start tomcat i got this error: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) ... Someone why are this hapennig? Thanks, Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email message contains confidential information and is intended for the use of its intended recipient only. Access to this email by anyone else is unauthorised. If you are not the intended recipient you are hereby notified that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If this communication has been sent to you in error, please notify us immediately. Action Information Management Ltd. 129 Devizes Road, Hilperton, Trowbridge, Wiltshire BA14 7SZ. Tel: +44 (0) 1225 711200 Fax: +44 (0) 1225 711222 Website www.aimltd.co.uk email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: installing admin package
Ok Chuck It seems that I've made too much changes in my tomcat It did what you said and now it's working Thanks for your help []s Érico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mod JK Connector Error Codes ?
Correct me if I am wrong but I believe I am using the JK module and not the JK2 module I am using version 1.2.15, and believe this is the version recommended by Apache for a production environment ? There is definitely no SHM file located in my logs directory. What does SHM stand for ? And what is it ? -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 16:11 To: Tomcat Users List Subject: RE: Mod JK Connector Error Codes ? Neil, When you use mod_jk you don't configure shm file (JK2 has a special configuration for shm file on worker2.properties). In my case, while TomCat/Apache are active, there is a shm.file on apache log directory. Check you config files to see if there is any reference to shm or to var/www/tomcat/ROOT (is the first / be missing?) --- Neil Sherman [EMAIL PROTECTED] escreveu: Yes, the var/www/tomcat/ROOT directory does exist. What is a SHM file ? Is this referenced in the httpd.conf file ? Neil -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 15:54 To: Tomcat Users List Subject: Re: Mod JK Connector Error Codes ? Neil, The directory var/www/tomcat/ROOT exists? Check your conf files to see where it's trying to write the SHM file. Maybe mod_jk is trying to create the shm file on an invalid directory. --- Neil Sherman [EMAIL PROTECTED] escreveu: I have Apache(2.0.55) and Tomcat (5.5.12) connected via the Mod JK (1.2.15) connector, setup and running on a Linux RedHat Enterprise Edition. On startup of Apache I get the following error in my Mod_JK.log file: [Fri Mar 17 13:51:46 2006] [error] init_jk::mod_jk.c (2370): Initializing shm:var/www/tomcat/ROOT errno=2 [Fri Mar 17 13:51:47 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm:var/www/tomcat/ROOT errno=2 [Fri Mar 17 13:51:47 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm:var/www/tomcat/ROOT errno=2 I have been trying to find what this errno=2 is actually refering too but can not find any documentation containing the list of error codes for the Mod JK connector. Although I get this error the website seems to function correctly. Can somebody please tell me what error code 2 actually is ? Or better still refer me to a list of all the Mod JK error codes ? Many thanks Neil This email message contains confidential information and is intended for the use of its intended recipient only. Access to this email by anyone else is unauthorised. If you are not the intended recipient you are hereby notified that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If this communication has been sent to you in error, please notify us immediately. Action Information Management Ltd. 129 Devizes Road, Hilperton, Trowbridge, Wiltshire BA14 7SZ. Tel: +44 (0) 1225 711200 Fax: +44 (0) 1225 711222 Website www.aimltd.co.uk email: [EMAIL PROTECTED] Vanessa Campos [EMAIL PROTECTED] ICQ 35381281 Efetivamente, para o homem, enquanto homem, nada tem valor a menos que ele possa executa-lo com entusiasmo Max Weber ___ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email message contains confidential information and is intended for the use of its intended recipient only. Access to this email by anyone else is unauthorised. If you are not the intended recipient you are hereby notified that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If this communication has been sent to you in error, please notify us immediately. Action Information Management Ltd. 129 Devizes Road, Hilperton, Trowbridge, Wiltshire BA14 7SZ. Tel: +44 (0) 1225 711200 Fax: +44 (0) 1225 711222 Website www.aimltd.co.uk email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vanessa Campos [EMAIL PROTECTED] ICQ 35381281 Efetivamente, para o homem, enquanto homem, nada tem valor a menos que ele possa executa-lo com entusiasmo Max Weber ___ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email message
RE: Mod JK Connector Error Codes ?
Neil, That's what I was trying to tell you. There is no way to set shm file on mod_jk. It's default location is on apache log directory. Did you check you conf files to see if there is any where a missing / on var/www/tomcat/ROOT? I thought the correct string was /var/www/tomcat/ROOT... Then, if this is correct, mod_jk is really trying to write to an invalid drectory. --- Neil Sherman [EMAIL PROTECTED] escreveu: Correct me if I am wrong but I believe I am using the JK module and not the JK2 module I am using version 1.2.15, and believe this is the version recommended by Apache for a production environment ? There is definitely no SHM file located in my logs directory. What does SHM stand for ? And what is it ? -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 16:11 To: Tomcat Users List Subject: RE: Mod JK Connector Error Codes ? Neil, When you use mod_jk you don't configure shm file (JK2 has a special configuration for shm file on worker2.properties). In my case, while TomCat/Apache are active, there is a shm.file on apache log directory. Check you config files to see if there is any reference to shm or to var/www/tomcat/ROOT (is the first / be missing?) --- Neil Sherman [EMAIL PROTECTED] escreveu: Yes, the var/www/tomcat/ROOT directory does exist. What is a SHM file ? Is this referenced in the httpd.conf file ? Neil -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 15:54 To: Tomcat Users List Subject: Re: Mod JK Connector Error Codes ? Neil, The directory var/www/tomcat/ROOT exists? Check your conf files to see where it's trying to write the SHM file. Maybe mod_jk is trying to create the shm file on an invalid directory. --- Neil Sherman [EMAIL PROTECTED] escreveu: I have Apache(2.0.55) and Tomcat (5.5.12) connected via the Mod JK (1.2.15) connector, setup and running on a Linux RedHat Enterprise Edition. On startup of Apache I get the following error in my Mod_JK.log file: [Fri Mar 17 13:51:46 2006] [error] init_jk::mod_jk.c (2370): Initializing shm:var/www/tomcat/ROOT errno=2 [Fri Mar 17 13:51:47 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm:var/www/tomcat/ROOT errno=2 [Fri Mar 17 13:51:47 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm:var/www/tomcat/ROOT errno=2 I have been trying to find what this errno=2 is actually refering too but can not find any documentation containing the list of error codes for the Mod JK connector. Although I get this error the website seems to function correctly. Can somebody please tell me what error code 2 actually is ? Or better still refer me to a list of all the Mod JK error codes ? Many thanks Neil This email message contains confidential information and is intended for the use of its intended recipient only. Access to this email by anyone else is unauthorised. If you are not the intended recipient you are hereby notified that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If this communication has been sent to you in error, please notify us immediately. Action Information Management Ltd. 129 Devizes Road, Hilperton, Trowbridge, Wiltshire BA14 7SZ. Tel: +44 (0) 1225 711200 Fax: +44 (0) 1225 711222 Website www.aimltd.co.uk email: [EMAIL PROTECTED] Vanessa Campos [EMAIL PROTECTED] ICQ 35381281 Efetivamente, para o homem, enquanto homem, nada tem valor a menos que ele possa executa-lo com entusiasmo Max Weber ___ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email message contains confidential information and is intended for the use of its intended recipient only. Access to this email by anyone else is unauthorised. If you are not the intended recipient you are hereby notified that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If this communication has been sent to you in error, please notify us immediately. Action Information Management Ltd. 129 Devizes Road, Hilperton, Trowbridge, Wiltshire BA14 7SZ. Tel: +44 (0) 1225 711200 Fax: +44 (0) 1225 711222 Website www.aimltd.co.uk email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: Problem Starting Tomcat
On 17 Mar 2006 at 13:06, Marco Aurélio Seraphim da Sil wrote: Hi, I got this problem yesterday at the morning, but during the evening it was working well, and when reboot the machine, it got the same problem. The port 8005 is been used by another program, but in my server.xml I can't see nothing using the port 8005. 8005 is the default shutdown port for tomcat I'm using it on Windows XP, and tomcat 5.0.28... This is my server.xml... ?xml version='1.0' encoding='utf-8'? Server debug=9 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/va lue /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service debug=9 name=Catalina Connector acceptCount=100 connectionTimeout=4 debug=9 disableUploadTimeout=true port=81 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine debug=9 defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=localhost_log. suffix=.txt timestamp=true verbosity=4/ /Host Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=catalina_log. suffix=.txt timestamp=true verbosity=4/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=9/ /Engine /Service /Server Thanks, Marco - Original Message - From: Neil Sherman [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; Marco Aurélio Seraphim da Silva [EMAIL PROTECTED] Sent: Friday, March 17, 2006 12:07 PM Subject: RE: Problem Starting Tomcat Marco, This sounds as if Tomcat is attempting to bind to a port that is already in use. You should check your server.xml file to see which ports Tomcat is attempting to bind too, you can then check to see if this port is already in use by running: Netstat -a Has this setup worked previously ? If so is tomcat already running ? How are you starting tomcat ? And under what OS ? Neil -Original Message- From: Marco Aurélio Seraphim da Silva [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 15:04 To: users@tomcat.apache.org Subject: Problem Starting Tomcat When I Start tomcat i got this error: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) ... Someone why are this hapennig? Thanks, Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email message contains confidential information and is intended for the use of its intended recipient only. Access to this email by anyone else is unauthorised. If you are not the intended recipient you are hereby notified that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If this communication has been sent to you in error, please notify us immediately. Action Information Management Ltd. 129 Devizes Road, Hilperton, Trowbridge, Wiltshire BA14 7SZ. Tel: +44 (0) 1225 711200 Fax: +44 (0) 1225 711222 Website www.aimltd.co.uk email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Threads
On 3/17/06, Morten Andersen [EMAIL PROTECTED] wrote: I need a thread that will write some emails and stuff every night. why not using scheduler? Can this be started from within tomcat. (I'm thinking about starting it from loadOnStartup) you can start a thread from nearly everywhere, just don't forget to call setDaemon(true) or your thread will prevent tomcat from shutting down properly. We are experiencing that the main thread freezes when our new Thread is put a sleep. than you are doing something wrong. Could you supply your thread-starting-code? Morten Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
view context files
I would like to configure my context to list it´s structure trough tomcat manger . If I copy some index.hmtl or index.jsp and choose my context in manager it works When I delete this index file I receive a message saying that my context is not available. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mod JK Connector Error Codes ?
My httpd.conf file has a bunch of include statements at the bottom of the file (so that I can keep each virtual hosts configuration separate) e.g. ... Include conf/siteA.conf Include conf/siteB.conf Include conf/siteC.conf ... Each of these include files looks like: VirtualHost 1.1.1.1:80 # Set the document root folder DocumentRoot /var/www/tomcat/webapps/siteA/ROOT # Set the name of the server ServerName siteA.com # Set up the alias for the maps Alias /maps /mnt/siteA.maps # Mount the worker JkMount /*.jsp LBsiteA # Set the server admin ServerAdmin [EMAIL PROTECTED] # Set the log files ErrorLog |/usr/local/sbin/cronolog /var/log/apache/siteA/%Y/%m/error_%Y_%m_%d.log CustomLog |/usr/local/sbin/cronolog /var/log/apache/siteA/%Y/%m/access_%Y_%m_%d.log common # Set the directory security Directory var/www/tomcat/webapps/siteA/ROOT AllowOverride All Order allow,deny Allow from all /Directory /VirtualHost The actual error message returned in the mod_jk.log file is [Fri Mar 17 13:51:46 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm:var/www/tomcat/siteB/ROOT errno=2 Strangely if I uncomment the include for Site B in my httpd.conf file I then receive the following error: [Fri Mar 17 16:30:46 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm: errno=2 If I uncomment all of the includes I see no errors in the mod_jk log file. Strangely if I uncomment all of the includes except for just one, I also see no errors in the log file, and it dosen't matter which one is left in. This leads me to believe that the actual paths etc are setup correctly otherwise I would receive this error whenever a specific include was not commented out. It looks like I am hitting some limit ? Perhaps the number of allowed connectors ? Neil -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 16:24 To: Tomcat Users List Subject: RE: Mod JK Connector Error Codes ? Neil, That's what I was trying to tell you. There is no way to set shm file on mod_jk. It's default location is on apache log directory. Did you check you conf files to see if there is any where a missing / on var/www/tomcat/ROOT? I thought the correct string was /var/www/tomcat/ROOT... Then, if this is correct, mod_jk is really trying to write to an invalid drectory. --- Neil Sherman [EMAIL PROTECTED] escreveu: Correct me if I am wrong but I believe I am using the JK module and not the JK2 module I am using version 1.2.15, and believe this is the version recommended by Apache for a production environment ? There is definitely no SHM file located in my logs directory. What does SHM stand for ? And what is it ? -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 16:11 To: Tomcat Users List Subject: RE: Mod JK Connector Error Codes ? Neil, When you use mod_jk you don't configure shm file (JK2 has a special configuration for shm file on worker2.properties). In my case, while TomCat/Apache are active, there is a shm.file on apache log directory. Check you config files to see if there is any reference to shm or to var/www/tomcat/ROOT (is the first / be missing?) --- Neil Sherman [EMAIL PROTECTED] escreveu: Yes, the var/www/tomcat/ROOT directory does exist. What is a SHM file ? Is this referenced in the httpd.conf file ? Neil -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 15:54 To: Tomcat Users List Subject: Re: Mod JK Connector Error Codes ? Neil, The directory var/www/tomcat/ROOT exists? Check your conf files to see where it's trying to write the SHM file. Maybe mod_jk is trying to create the shm file on an invalid directory. --- Neil Sherman [EMAIL PROTECTED] escreveu: I have Apache(2.0.55) and Tomcat (5.5.12) connected via the Mod JK (1.2.15) connector, setup and running on a Linux RedHat Enterprise Edition. On startup of Apache I get the following error in my Mod_JK.log file: [Fri Mar 17 13:51:46 2006] [error] init_jk::mod_jk.c (2370): Initializing shm:var/www/tomcat/ROOT errno=2 [Fri Mar 17 13:51:47 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm:var/www/tomcat/ROOT errno=2 [Fri Mar 17 13:51:47 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm:var/www/tomcat/ROOT errno=2 I have been trying to find what this errno=2 is actually refering too but can not find any documentation containing the list of error codes for the Mod JK connector. Although I get this error the website seems to function correctly. Can somebody please tell me what error code 2 actually is ? Or better still refer me to a list of all the Mod JK error codes ? Many thanks
Re: Problem Starting Tomcat
Well I had same problem with Tomcat and I use Netbeans 5. I solved this problem by stopping server in NetBeans 5 another Runtime window in NetbBeans 5,and now everything working fine. Yes sometimes i got again this situation but i solved again on the same problem. It happens that Tomcat can`t stopped servis (i don`t now why). If you don`t use NetBeans press CTRL+ALT+DEL and see if any of java.exe is running even you didn`t start any Tomcat and if yoy find it kill that process. ANd i think it will help Bye --- Steve Ochani [EMAIL PROTECTED] wrote: On 17 Mar 2006 at 13:06, Marco Aurélio Seraphim da Sil wrote: Hi, I got this problem yesterday at the morning, but during the evening it was working well, and when reboot the machine, it got the same problem. The port 8005 is been used by another program, but in my server.xml I can't see nothing using the port 8005. 8005 is the default shutdown port for tomcat I'm using it on Windows XP, and tomcat 5.0.28... This is my server.xml... ?xml version='1.0' encoding='utf-8'? Server debug=9 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/va lue /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service debug=9 name=Catalina Connector acceptCount=100 connectionTimeout=4 debug=9 disableUploadTimeout=true port=81 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine debug=9 defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=localhost_log. suffix=.txt timestamp=true verbosity=4/ /Host Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=catalina_log. suffix=.txt timestamp=true verbosity=4/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=9/ /Engine /Service /Server Thanks, Marco - Original Message - From: Neil Sherman [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; Marco Aurélio Seraphim da Silva [EMAIL PROTECTED] Sent: Friday, March 17, 2006 12:07 PM Subject: RE: Problem Starting Tomcat Marco, This sounds as if Tomcat is attempting to bind to a port that is already in use. You should check your server.xml file to see which ports Tomcat is attempting to bind too, you can then check to see if this port is already in use by running: Netstat -a Has this setup worked previously ? If so is tomcat already running ? How are you starting tomcat ? And under what OS ? Neil -Original Message- From: Marco Aurélio Seraphim da Silva [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 15:04 To: users@tomcat.apache.org Subject: Problem Starting Tomcat When I Start tomcat i got this error: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) ... Someone why are this hapennig? Thanks, Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email message contains confidential information and is intended for the use of its intended recipient only. Access to this email by anyone else is unauthorised. If you are not the intended recipient you are hereby notified that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If this communication has been sent to you in error, please notify us immediately. Action Information Management Ltd. 129 Devizes Road, Hilperton, Trowbridge, Wiltshire BA14 7SZ. Tel: +44 (0) 1225 711200 Fax: +44 (0) 1225 711222 Website www.aimltd.co.uk email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Best eclipse plugin for tomcat development
Hi, Following the advice of the mailing lists members, I'm trying to work with Eclipse. I've learned that to do tomcat development I need to download an appropriate plugin and that there are seveal to choose from. Can someone recommend a good one (or is there a best one, or the most common one)? Thanks! Dola __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best eclipse plugin for tomcat development
Dola There is a good choice on the market, I have used 2 with success: MyEclipseIDE : http://www.myeclipseide.com/ and JBoss Eclipse IDE : http://www.jboss.com/products/jbosside With Best Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 |-+--- | | Dola Woolfe | | | [EMAIL PROTECTED]| | | com| | | | | | 17.03.06 17:44 | | | Please respond | | | to Tomcat Users| | | List | | | | |-+--- -| | | |To: Tom Cat tomcat-user@jakarta.apache.org | |cc: | |Subject: Best eclipse plugin for tomcat development | | | |Distribute: | |Personal? |---| | || [ ] x | | ||---| | | | -| Hi, Following the advice of the mailing lists members, I'm trying to work with Eclipse. I've learned that to do tomcat development I need to download an appropriate plugin and that there are seveal to choose from. Can someone recommend a good one (or is there a best one, or the most common one)? Thanks! Dola __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this email inserting the word misdirected as the message and delete this e-mail from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mod JK Connector Error Codes ?
Neil, I found this on http://www.mail-archive.com/dev@httpd.apache.org/msg31214.html: Re: Your opinion on some logs - Apache/mod_jk/Tomcat Pascal Alberty Thu, 09 Mar 2006 00:35:59 -0800 1. Apache - mod_jk.log [Wed Mar 08 15:34:40 2006] [error] jk_child_init::mod_jk.c (2312): Attachning shm:/etc/apache2/logs/jk-runtime-status errno=2 First one is solved. By default, directory for this log is /etc/apache2/logs/ and apache does not have enough permission to create the log file. So, you can change this directory using the JkShmFile directive in your httpd.conf. For example: JkShmFile /var/log/apache2/jk-runtime-status -- Pascal Alberty --- Neil Sherman [EMAIL PROTECTED] escreveu: Unfortunately I still receive the same error: [Fri Mar 17 16:42:42 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm:/var/www/tomcat/webapps/siteB/ROOT errno=2 ? -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 16:40 To: Tomcat Users List Subject: RE: Mod JK Connector Error Codes ? Neil, Check this: Directory var/www/tomcat/webapps/siteA/ROOT AllowOverride All Order allow,deny Allow from all /Directory Try to put a / before var, like this: Directory /var/www/tomcat/webapps/siteA/ROOT AllowOverride All Order allow,deny Allow from all /Directory --- Neil Sherman [EMAIL PROTECTED] escreveu: My httpd.conf file has a bunch of include statements at the bottom of the file (so that I can keep each virtual hosts configuration separate) e.g. ... Include conf/siteA.conf Include conf/siteB.conf Include conf/siteC.conf ... Each of these include files looks like: VirtualHost 1.1.1.1:80 # Set the document root folder DocumentRoot /var/www/tomcat/webapps/siteA/ROOT # Set the name of the server ServerName siteA.com # Set up the alias for the maps Alias /maps /mnt/siteA.maps # Mount the worker JkMount /*.jsp LBsiteA # Set the server admin ServerAdmin [EMAIL PROTECTED] # Set the log files ErrorLog |/usr/local/sbin/cronolog /var/log/apache/siteA/%Y/%m/error_%Y_%m_%d.log CustomLog |/usr/local/sbin/cronolog /var/log/apache/siteA/%Y/%m/access_%Y_%m_%d.log common # Set the directory security Directory var/www/tomcat/webapps/siteA/ROOT AllowOverride All Order allow,deny Allow from all /Directory /VirtualHost The actual error message returned in the mod_jk.log file is [Fri Mar 17 13:51:46 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm:var/www/tomcat/siteB/ROOT errno=2 Strangely if I uncomment the include for Site B in my httpd.conf file I then receive the following error: [Fri Mar 17 16:30:46 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm: errno=2 If I uncomment all of the includes I see no errors in the mod_jk log file. Strangely if I uncomment all of the includes except for just one, I also see no errors in the log file, and it dosen't matter which one is left in. This leads me to believe that the actual paths etc are setup correctly otherwise I would receive this error whenever a specific include was not commented out. It looks like I am hitting some limit ? Perhaps the number of allowed connectors ? Neil -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 16:24 To: Tomcat Users List Subject: RE: Mod JK Connector Error Codes ? Neil, That's what I was trying to tell you. There is no way to set shm file on mod_jk. It's default location is on apache log directory. Did you check you conf files to see if there is any where a missing / on var/www/tomcat/ROOT? I thought the correct string was /var/www/tomcat/ROOT... Then, if this is correct, mod_jk is really trying to write to an invalid drectory. --- Neil Sherman [EMAIL PROTECTED] escreveu: Correct me if I am wrong but I believe I am using the JK module and not the JK2 module I am using version 1.2.15, and believe this is the version recommended by Apache for a production environment ? There is definitely no SHM file located in my logs directory. What does SHM stand for ? And what is it ? -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 16:11 To: Tomcat Users List Subject: RE: Mod JK Connector Error Codes ? Neil, When you use mod_jk you don't configure shm file (JK2 has a special configuration for shm file on worker2.properties). In my case, while TomCat/Apache are active, there is a shm.file on apache log
Re: Threads
yes, Quartz, is a nice open source scheduler. best place to start it, is in an init method of a servlet. Filip Leon Rosenberg wrote: On 3/17/06, Morten Andersen [EMAIL PROTECTED] wrote: I need a thread that will write some emails and stuff every night. why not using scheduler? Can this be started from within tomcat. (I'm thinking about starting it from loadOnStartup) you can start a thread from nearly everywhere, just don't forget to call setDaemon(true) or your thread will prevent tomcat from shutting down properly. We are experiencing that the main thread freezes when our new Thread is put a sleep. than you are doing something wrong. Could you supply your thread-starting-code? Morten Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mod JK Connector Error Codes ?
Excellent!! That fixed it! Many thanks for your time. May I ask what you searched for and where in order to find that article ? As I have been searching all afternoon with no luck! Neil -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 16:51 To: Tomcat Users List Subject: RE: Mod JK Connector Error Codes ? Neil, I found this on http://www.mail-archive.com/dev@httpd.apache.org/msg31214.html: Re: Your opinion on some logs - Apache/mod_jk/Tomcat Pascal Alberty Thu, 09 Mar 2006 00:35:59 -0800 1. Apache - mod_jk.log [Wed Mar 08 15:34:40 2006] [error] jk_child_init::mod_jk.c (2312): Attachning shm:/etc/apache2/logs/jk-runtime-status errno=2 First one is solved. By default, directory for this log is /etc/apache2/logs/ and apache does not have enough permission to create the log file. So, you can change this directory using the JkShmFile directive in your httpd.conf. For example: JkShmFile /var/log/apache2/jk-runtime-status -- Pascal Alberty --- Neil Sherman [EMAIL PROTECTED] escreveu: Unfortunately I still receive the same error: [Fri Mar 17 16:42:42 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm:/var/www/tomcat/webapps/siteB/ROOT errno=2 ? -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 16:40 To: Tomcat Users List Subject: RE: Mod JK Connector Error Codes ? Neil, Check this: Directory var/www/tomcat/webapps/siteA/ROOT AllowOverride All Order allow,deny Allow from all /Directory Try to put a / before var, like this: Directory /var/www/tomcat/webapps/siteA/ROOT AllowOverride All Order allow,deny Allow from all /Directory --- Neil Sherman [EMAIL PROTECTED] escreveu: My httpd.conf file has a bunch of include statements at the bottom of the file (so that I can keep each virtual hosts configuration separate) e.g. ... Include conf/siteA.conf Include conf/siteB.conf Include conf/siteC.conf ... Each of these include files looks like: VirtualHost 1.1.1.1:80 # Set the document root folder DocumentRoot /var/www/tomcat/webapps/siteA/ROOT # Set the name of the server ServerName siteA.com # Set up the alias for the maps Alias /maps /mnt/siteA.maps # Mount the worker JkMount /*.jsp LBsiteA # Set the server admin ServerAdmin [EMAIL PROTECTED] # Set the log files ErrorLog |/usr/local/sbin/cronolog /var/log/apache/siteA/%Y/%m/error_%Y_%m_%d.log CustomLog |/usr/local/sbin/cronolog /var/log/apache/siteA/%Y/%m/access_%Y_%m_%d.log common # Set the directory security Directory var/www/tomcat/webapps/siteA/ROOT AllowOverride All Order allow,deny Allow from all /Directory /VirtualHost The actual error message returned in the mod_jk.log file is [Fri Mar 17 13:51:46 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm:var/www/tomcat/siteB/ROOT errno=2 Strangely if I uncomment the include for Site B in my httpd.conf file I then receive the following error: [Fri Mar 17 16:30:46 2006] [error] jk_child_init::mod_jk.c (2326): Attachning shm: errno=2 If I uncomment all of the includes I see no errors in the mod_jk log file. Strangely if I uncomment all of the includes except for just one, I also see no errors in the log file, and it dosen't matter which one is left in. This leads me to believe that the actual paths etc are setup correctly otherwise I would receive this error whenever a specific include was not commented out. It looks like I am hitting some limit ? Perhaps the number of allowed connectors ? Neil -Original Message- From: Vanessa Campos [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 16:24 To: Tomcat Users List Subject: RE: Mod JK Connector Error Codes ? Neil, That's what I was trying to tell you. There is no way to set shm file on mod_jk. It's default location is on apache log directory. Did you check you conf files to see if there is any where a missing / on var/www/tomcat/ROOT? I thought the correct string was /var/www/tomcat/ROOT... Then, if this is correct, mod_jk is really trying to write to an invalid drectory. --- Neil Sherman [EMAIL PROTECTED] escreveu: Correct me if I am wrong but I believe I am using the JK module and not the JK2 module I am using version 1.2.15, and believe this is the version recommended by Apache for a production environment ? There is definitely no SHM file located in my logs directory. What does SHM stand for ? And what is it ? -Original Message- From: Vanessa Campos [mailto:[EMAIL
RE: Best eclipse plugin for tomcat development
Hi Dola I´m using this one http://www.sysdeo.com/eclipse/tomcatplugin and it works very well. I´m developing on Windows XP but I didn´t test it on linux, maybe it works fine too, perhaps somebody can tell us more info for using it on linux. Mauricio Fernández A. Ingeniero de Sistemas Universidad Autónoma de Manizales (Colombia) -Mensaje original- De: Dola Woolfe [mailto:[EMAIL PROTECTED] Enviado el: viernes, 17 marzo, 2006 17:45 Para: Tom Cat Asunto: Best eclipse plugin for tomcat development Hi, Following the advice of the mailing lists members, I'm trying to work with Eclipse. I've learned that to do tomcat development I need to download an appropriate plugin and that there are seveal to choose from. Can someone recommend a good one (or is there a best one, or the most common one)? Thanks! Dola __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best eclipse plugin for tomcat development
http://www.myeclipseide.com/ +1 -Original Message- From: Bruno Georges [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 11:49 AM To: Tomcat Users List Cc: Tom Cat Subject: Re: Best eclipse plugin for tomcat development Dola There is a good choice on the market, I have used 2 with success: MyEclipseIDE : http://www.myeclipseide.com/ and JBoss Eclipse IDE : http://www.jboss.com/products/jbosside With Best Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 |-+--- | | Dola Woolfe | | | [EMAIL PROTECTED]| | | com| | | | | | 17.03.06 17:44 | | | Please respond | | | to Tomcat Users| | | List | | | | |-+--- --- --| | | |To: Tom Cat tomcat-user@jakarta.apache.org | |cc: | |Subject: Best eclipse plugin for tomcat development | | | |Distribute: | |Personal? |---| | || [ ] x | | ||---| | | | --- --| Hi, Following the advice of the mailing lists members, I'm trying to work with Eclipse. I've learned that to do tomcat development I need to download an appropriate plugin and that there are seveal to choose from. Can someone recommend a good one (or is there a best one, or the most common one)? Thanks! Dola __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this email inserting the word misdirected as the message and delete this e-mail from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TomCat + mod_jk performance
Hi, My server is a bit 'slow'. It takes me a while to receive my pages when I hit the site. How fast is tomcat when using apache + mod_jk? Is there any performance test I can apply on my server to check if it is tomcat or my badwidth? Thank you Vanessa Campos [EMAIL PROTECTED] ICQ 35381281 Efetivamente, para o homem, enquanto homem, nada tem valor a menos que ele possa executa-lo com entusiasmo Max Weber ___ Yahoo! doce lar. Faça do Yahoo! sua homepage. http://br.yahoo.com/homepageset.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NT Service and JRockit
That's was the first path I tried and I just tried it again just to make sure I didn't miss it. Still no luck. This is my first attempt working JRockit and tomcat and not going swell so far. I've heard good things with JRockit's performance vs. Sun and I want to see for myself in my environment, but I'm not getting to far. Russ -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 12:28 PM To: Tomcat Users List Subject: RE: NT Service and JRockit From: Pitre, Russell [mailto:[EMAIL PROTECTED] Please select the path of a J2SE 5.0 JRE installed on your system:, I then chose C:\JAVA\jrockit-R26.0.0-jdk1.5.0_04\jre\bin\jrockit as the path. Thinking aloud here, but wouldn't the path be just to c:\...\jre ? - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TomCat + mod_jk performance
If you have lots of static html pages then apache is much better at handling them. For other dynamic content like .jsp tomcat has to handle the requests. So thats why you would have apache + the mod_jk connector. If all your files are jsp and you don't need static page serving or other features of Apache, then you can run tomcat stand-alone. for testing load you can use Jmeter http://jakarta.apache.org/jmeter/index.html -- Alex Jalali I(2) Drive Team! I(2) Drive Online Storage http://www.i2drive.com -- Hi, My server is a bit 'slow'. It takes me a while to receive my pages when I hit the site. How fast is tomcat when using apache + mod_jk? Is there any performance test I can apply on my server to check if it is tomcat or my badwidth? Thank you Vanessa Campos [EMAIL PROTECTED] ICQ 35381281 Efetivamente, para o homem, enquanto homem, nada tem valor a menos que ele possa executa-lo com entusiasmo Max Weber ___ Yahoo! doce lar. Faça do Yahoo! sua homepage. http://br.yahoo.com/homepageset.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK Question - Serve all but one context
I have a question about the JK isapi filter. I am trying to have IIS redirect all but one url (context) to tomcat # uriworkermap.properties - IIS # # This file provides sample mappings for example wlb # worker defined in workermap.properties.minimal # The general syntax for this file is: # [URL]=[Worker name] /*=worker1 /*.jsp=worker1 # Optionally filter out all .jpeg files inside that context # For no mapping the url has to start with exclamation (!) !/do_not_forward/*=worker1 #!/*.gif=worker1 # # Mount jkstatus to /jkmanager # For production servers you will need to # secure the access to the /jkmanager url # /jkmanager=jkstatus For some reason, it still tries to push that url to tomcat. However, if I filter out all of the gif (as in the line below), it works as expected. Can someone please let me know if this can be done, and if I am doing it correctly. Thank You, Aaron Steele YRI Enterprise Solutions https://ris.yumnet.com w: 972.338.6862 c: 817.401.0831 This communication is confidential and may be legally privileged. If you are not the intended recipient, (i) please do not read or disclose to others, (ii) please notify the sender by reply mail, and (iii) please delete this communication from your system. Failure to follow this process may be unlawful. Thank you for your cooperation.
Supporting maximum number of keep-alive connections
Hi I would like to try out tomcat for new my application. I have used tomcat for quite some time, but the nature of new application is very different from the traditional request-response model. We want to build an application that supports about 1024 keep-alive connections per machine.(2 GB, x86 running linux 2.6.x). We need keep-alive support because application is push-oriented. Browsers send a request and the server keeps the connection open till browser time-out(~10 mins). mean-while data is pushed to client as javascript commands. when browser time-out happens, a command for new connection is sent back. Application is dynamic in nature, using servlets to publish data. After googling and going thru mailing archives, i would like to collect feedback from other tomcat users. option A) This option is one thread - one connection, so not very scalable. Just use coyote HTTP/JK connector , set the thread stack size, VM heap size and maximum threads in config file. For my other applications, the defaults worked fine for me. But this time i am looking for as many threads as i can support. What is the maximum number of threads people have success with on NORMAL machines?( ~ 2 GB RAM, single processor running linux ) on such a machine what is the maximum possible threads ? what parameters to tune ? It looks like with a thread stack size of 256 k, 1024 threads should be possible. option B) Use tomcat APR. adjust the poller size to 1024. I dont know how this works out in real life or what are the max. possible numbers. option C) Use glassfish's grizzly as http connector. I have seen blog posts about grizzly. can this connector be used with tomcat 5.5.x ? Has anyone had success using it with this kind of requirement ? Then, the other bottle-neck is, integrating with apache. If we run tomcat APJ APR and apache is the front end then apache would also be hard pressed to do 1024 keep-alive connections. I can try event MPM or worker modules. Does this look ok ? Active child processes - 32 Server Limit - 64 ThreadsPerChild - 32 MaxClients - 1024 I would appreciate if any of you can speak from experience. Our first aim is to support 1024 keep-alives with tomcat, then 1024 keep-alives with apache/tomcat combo, then maybe run multiple instances then multiple machines ... (Long shot) I have some dev machines and time for this job. So if you guys help and want me to run some benchmarking tool , i can do that also. Thanks Rajeev. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NT Service and JRockit
That's what I ended up doing. I was also taking a look at the installer at the same time for sh$%! and giggles! -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 1:41 PM To: Tomcat Users List Subject: Re: NT Service and JRockit On 3/17/06, Pitre, Russell [EMAIL PROTECTED] wrote: I'm want to obtain some benchmarks for jrockit and sun jvms but I can't seem to install Tomcat on WinXP using the windows executable ( apache-tomcat-5.5.16.exe ) with the JRockit jvm. If this is just for benchmarking, why are you wasting time with the installer? Install the tar file version, make copies of the startup scripts and configure one of each to use the target JVM. FWIW! -- Hassan Schroeder [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem Starting Tomcat - Now works
Yes, that was the problem the NetBeans was using the same port... I had to use windows registry to remove the program, the was no evidence of it... Thanks all, Marco - Original Message - From: Nenad Bosanac [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, March 17, 2006 1:41 PM Subject: Re: Problem Starting Tomcat Well I had same problem with Tomcat and I use Netbeans 5. I solved this problem by stopping server in NetBeans 5 another Runtime window in NetbBeans 5,and now everything working fine. Yes sometimes i got again this situation but i solved again on the same problem. It happens that Tomcat can`t stopped servis (i don`t now why). If you don`t use NetBeans press CTRL+ALT+DEL and see if any of java.exe is running even you didn`t start any Tomcat and if yoy find it kill that process. ANd i think it will help Bye --- Steve Ochani [EMAIL PROTECTED] wrote: On 17 Mar 2006 at 13:06, Marco Aurélio Seraphim da Sil wrote: Hi, I got this problem yesterday at the morning, but during the evening it was working well, and when reboot the machine, it got the same problem. The port 8005 is been used by another program, but in my server.xml I can't see nothing using the port 8005. 8005 is the default shutdown port for tomcat I'm using it on Windows XP, and tomcat 5.0.28... This is my server.xml... ?xml version='1.0' encoding='utf-8'? Server debug=9 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/va lue /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service debug=9 name=Catalina Connector acceptCount=100 connectionTimeout=4 debug=9 disableUploadTimeout=true port=81 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine debug=9 defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=localhost_log. suffix=.txt timestamp=true verbosity=4/ /Host Logger className=org.apache.catalina.logger.FileLogger debug=9 prefix=catalina_log. suffix=.txt timestamp=true verbosity=4/ Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=9/ /Engine /Service /Server Thanks, Marco - Original Message - From: Neil Sherman [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; Marco Aurélio Seraphim da Silva [EMAIL PROTECTED] Sent: Friday, March 17, 2006 12:07 PM Subject: RE: Problem Starting Tomcat Marco, This sounds as if Tomcat is attempting to bind to a port that is already in use. You should check your server.xml file to see which ports Tomcat is attempting to bind too, you can then check to see if this port is already in use by running: Netstat -a Has this setup worked previously ? If so is tomcat already running ? How are you starting tomcat ? And under what OS ? Neil -Original Message- From: Marco Aurélio Seraphim da Silva [mailto:[EMAIL PROTECTED] Sent: 17 March 2006 15:04 To: users@tomcat.apache.org Subject: Problem Starting Tomcat When I Start tomcat i got this error: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) ... Someone why are this hapennig? Thanks, Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email message contains confidential information and is intended for the use of its intended recipient only. Access to this email by anyone else is unauthorised. If you are not the intended recipient you are hereby notified that any use, disclosure, copying or distribution
RE: TomCat + mod_jk performance
Interesing article. I've done more basic tests with tomcat 5.0.19 and jdk 1.4.2 and apache 2.0.?? apache was faster. Maybe the problem is when I was testing static pages, it wasn't tomcat as stand-alone vs. apache it was apache vs. tomcat + connector + apache also I run the test locally on a windows machine. so perhaps java runs slower on windows. Although i do have this question about non-static pages. Which do you think is faster? let say you have 1GB ram and 2 CPUs. running a) apache + 1 tomcat or b) apache + 2 tomcat in cluster via mod_jk? would having 2 JVM on the same server that has two CPU's run faster or it wouldn't make any diffrence? do you know of any tests done for clusters From: Alex Jalali [mailto:[EMAIL PROTECTED] Subject: Re: TomCat + mod_jk performance If you have lots of static html pages then apache is much better at handling them. Have you actually measured this on the current version of Tomcat, or are you just echoing what you've heard? If you try 5.5.x with the APR connector, I think you'll find little difference in performance between Tomcat and httpd for static content. This is an interesting read: http://tomcat.apache.org/articles/benchmark_summary.pdf (Note that the above article does not reflect the latest improvements in Tomcat performanc.) There are reasons to front-end Tomcat with httpd, but static content performance is no longer one of them. - 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk specific configuration problem
Hello everyone, I have come accross a problem, I need the following setup apache + mod_jk, but I'd need 2 sets of worker.properties, one per each virtual host, ie, virtual host 1 would forward requests to Tomcat A and Tomcat B, and virtual host 2, would follow the requests to Tomcat C and Tomcat D. I have noticed that the JkWorkersFile directive cant be used per vhost, but rather in the main apache configuration context, is there any solution to work this out with vhosts, besides running 2 different apache instances? Thanks in advance, Cheers Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk specific configuration problem
apache + mod_jk, but I'd need 2 sets of worker.properties, one per each virtual host, ie, virtual host 1 would forward requests to Tomcat A and Tomcat B, and virtual host 2, would follow the requests to Tomcat C and Tomcat D. I have noticed that the JkWorkersFile directive cant be used per vhost, but rather in the main apache configuration context, is there any solution to work this out with vhosts, besides running 2 different apache instances? Actually the JkMount directive can be placed inside a vhost, you can use on JkWorkers file to define workers for Tomcat A B, C, and D use the appropriate JkMount statement in each vhost - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TomCat + mod_jk performance
There are lots of reasons to run Apache in front of Tomcat, and lots of reasons not to. This just depends on your use cases and web site. At any rate, here's one way to find out in your case if the Apache -- ajp13 -- Tomcat process is your bottleneck. 1. Get jmeter at http://jakarta.apache.org/jmeter/ 2. Design and run tests against your web site as: http://yourhost/yoursite/ 3. Design and run test against your web site as: http://yourhost:8080/yoursite/ Caveats 1. Your static content will have to be available to Tomcat 2. Tomcat will have to run the http connector on 8080 (or another port - check server.xml) 3. You will have to be able to connect to your web site on the port listed in caveat 2. just some random thoughts . . . . /mde/ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best eclipse plugin for tomcat development
Being in this topic, I'm searching for eclipse 3 plugin similar to solareclipse under eclipse 2. A simple yet powerful jsp/html/xml editor without jsp compilation, tomcat connection or anything. Just a beautifier. Any ideas? Leon On 3/17/06, Pitre, Russell [EMAIL PROTECTED] wrote: http://www.myeclipseide.com/ +1 -Original Message- From: Bruno Georges [mailto:[EMAIL PROTECTED] Sent: Friday, March 17, 2006 11:49 AM To: Tomcat Users List Cc: Tom Cat Subject: Re: Best eclipse plugin for tomcat development Dola There is a good choice on the market, I have used 2 with success: MyEclipseIDE : http://www.myeclipseide.com/ and JBoss Eclipse IDE : http://www.jboss.com/products/jbosside With Best Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 |-+--- | | Dola Woolfe | | | [EMAIL PROTECTED]| | | com| | | | | | 17.03.06 17:44 | | | Please respond | | | to Tomcat Users| | | List | | | | |-+--- --- --| | | |To: Tom Cat tomcat-user@jakarta.apache.org | |cc: | |Subject: Best eclipse plugin for tomcat development | | | |Distribute: | |Personal? |---| | || [ ] x | | ||---| | | | --- --| Hi, Following the advice of the mailing lists members, I'm trying to work with Eclipse. I've learned that to do tomcat development I need to download an appropriate plugin and that there are seveal to choose from. Can someone recommend a good one (or is there a best one, or the most common one)? Thanks! Dola __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this email inserting the word misdirected as the message and delete this e-mail from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Supporting maximum number of keep-alive connections
On 3/17/06, Leon Rosenberg [EMAIL PROTECTED] wrote: But pushing dynamic content with squid? I doubt it will work. However, squid is using select reads instead of tomcat's blocking reads, and could reduce the number of threads, but I have seriously doubts with keepalives, have you actually tested it? :-) I haven't actually tested it, but squid works just fine serving dynamic content and also supporting keep-alives as well from reading the docs and doing a quick google search. Have you tried it? ;) -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TomCat + mod_jk performance
On 3/17/06, Alex Jalali [EMAIL PROTECTED] wrote: Although i do have this question about non-static pages. Which do you think is faster? let say you have 1GB ram and 2 CPUs. running a) apache + 1 tomcat or b) apache + 2 tomcat in cluster via mod_jk? would having 2 JVM on the same server that has two CPU's run faster or it wouldn't make any diffrence? do you know of any tests done for clusters Unless you have some sort of locking issues in your code, running a single JVM should be faster as there will be less memory thrashing doing context switches between threads between 2 JVMs. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Supporting maximum number of keep-alive connections
On 3/17/06, David Rees [EMAIL PROTECTED] wrote: On 3/17/06, Leon Rosenberg [EMAIL PROTECTED] wrote: Have you tried it? ;) Yeah, and it didn't add any performance. However it helped to keep the thread count low. But it was on 2.4.x kernel, where threads were an issue, on 2.6.x its pointless (at least until you really has something to cache :-) ) If you're using Squid instead of Apache it can really help as setting up Apache to handle lots of concurrent connections is not easy: With a standard config on Unix you end up with a httpd process per connection, with one of the less tested MPMs you still end up with a thread. That's true, but there is nothing to get by putting an apache infront of tomcat. So we are not talking about squid vs apache, but about squid-tomcat vs tomcat. I think with 2.4.6 kernel 1024 threads shouldn't be a problem, if they are mostly inactive. If they aren't inactive, well the load on the cpu will determine the amound of threads you can support. With a typical Apache process consuming at least 4MB of memory, all of a sudden supporting 1000+ connections at the same time because not so trivial, not to mention the severe memory thrashing that occurs context switching between all those processes. It looks like Apache 2.2 supports using a separate thread for the sole task of keeping track of keep-alives, but you have to use the event MPM. http://httpd.apache.org/docs/2.2/mod/event.html I haven't tried Apache 2.2 yet, and I haven't had luck with any other MPM besides prefork, but then again, I haven't tried any other MPMs recently, either. -Dave -Dave Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk specific configuration problem
Thanks for the help, its working now ;) Cheers Christian Ryan McDonald wrote: apache + mod_jk, but I'd need 2 sets of worker.properties, one per each virtual host, ie, virtual host 1 would forward requests to Tomcat A and Tomcat B, and virtual host 2, would follow the requests to Tomcat C and Tomcat D. I have noticed that the JkWorkersFile directive cant be used per vhost, but rather in the main apache configuration context, is there any solution to work this out with vhosts, besides running 2 different apache instances? Actually the JkMount directive can be placed inside a vhost, you can use on JkWorkers file to define workers for Tomcat A B, C, and D use the appropriate JkMount statement in each vhost - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deadlock - Out of Threads - Strange Exception - OutOfMemory - Server Death. Bug in org.apache.naming.resources.ProxyDirContext.cacheLoad?
Hi Leon, Thanks for your tip about the NPTL threads. I tried upgrading to linux 2.6.8 and glibc 2.3.5, but the problem remains :( I've studied a number of stack traces and the locking seems fine - there is evidence of cyclical deadlock. The problem is that a whole lot of threads (including the ones holding the locks) are listed as 'waiting for monitor' but I can't see why. I saw Charles mention in another thread something about the monitor disappearing in native code and not returning and thought this might have something to do with it. If included a couple of stack traces of the threads holding the problematic locks (on the PersistenceManagerFactoryImpl) Thanks again, Roger TP-Processor21 daemon prio=1 tid=0x08534250 nid=0x56b8 waiting for monitor entry [0xbabfe000..0xbabff7d4] at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812) - locked 0x5b031c00 (a org.apache.catalina.loader.WebappClassLoader) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) - locked 0x5b031c00 (a org.apache.catalina.loader.WebappClassLoader) at org.postgresql.jdbc2.AbstractJdbc2Connection.executeTransactionCommand(AbstractJdbc2Connection.java:625) at org.postgresql.jdbc2.AbstractJdbc2Connection.commit(AbstractJdbc2Connection.java:645) at org.apache.commons.dbcp.DelegatingConnection.commit(DelegatingConnection.java:238) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.commit(PoolingDataSource.java:199) at org.jpox.store.rdbms.RDBMSManager$MgmtTransaction.execute(RDBMSManager.java:1872) at org.jpox.store.rdbms.RDBMSManager.addClasses(RDBMSManager.java:553) at org.jpox.store.StoreManager.initialiseAutoStart(StoreManager.java:400) at org.jpox.store.rdbms.RDBMSManager.initialiseSchema(RDBMSManager.java:472) at org.jpox.store.rdbms.RDBMSManager.init(RDBMSManager.java:237) at org.jpox.store.rdbms.RDBMSManagerFactory.getStoreManager(RDBMSManagerFactory.java:59) - locked 0x6c16a598 (a java.lang.Class) at org.jpox.AbstractPersistenceManager.init(AbstractPersistenceManager.java:221) at org.jpox.PersistenceManagerImpl.init(PersistenceManagerImpl.java:34) at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:887) - locked 0x5b0e1900 (a org.jpox.PersistenceManagerFactoryImpl) at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:862) - locked 0x5b0e1900 (a org.jpox.PersistenceManagerFactoryImpl) at net.ninthave.multisites.core.DAO.init(DAO.java:82) at net.ninthave.multisites.filters.RequestFilter.doFilter(RequestFilter.java:134) TP-Processor24 daemon prio=1 tid=0x08117d10 nid=0x3380 waiting for monitor entry [0xbb9fe000..0xbb9ff854] at java.lang.String.intern(Native Method) at com.sun.org.apache.xerces.internal.util.SymbolTable$Entry.init(SymbolTable.java:318) at com.sun.org.apache.xerces.internal.util.SymbolTable.addSymbol(SymbolTable.java:152) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.getAttributeTypeName(XMLDTDValidator.java:1818) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(XMLDTDValidator.java:1198) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1971) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:816) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at javax.xml.parsers.SAXParser.parse(SAXParser.java:176) at
Re: Deadlock - Out of Threads - Strange Exception - OutOfMemory - Server Death. Bug in org.apache.naming.resources.ProxyDirContext.cacheLoad?
I've studied a number of stack traces and the locking seems fine - there is evidence of cyclical deadlock. The problem is that a whole lot of threads (including the ones holding the locks) are listed as 'waiting for monitor' but I can't see why. I found out that it was the garbage collector that those threads were waiting on, but the gc had given up because I was out of PermGen memory space. -XX:MaxPermSize=128m fixes the issue :) -- Ninth Avenue Software p: +61 7 3870 8494 (UTC +10) f: +61 7 3870 8491 w: http://www.ninthavenue.com.au e: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.apache.ajp.Ajp13 not used?
KARNATI, SRINIVASA R [AG/1000] [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Contrary to my beliefs org.apache.jk.common.MsgAjp has the code to increase request header size (buffer size) for AJP/1.3 rather than org.apache.ajp.Ajp13. In fact, I was searching for a tomcat's installation jars to find out the jar that has Ajp13 class, and could not find one. I don't know where exactly org.apache.ajp.Ajp13 being used. Any thoughts? The o.a.ajp.** Connector was a failure, and is not used any more. Thanks, Srini - This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited. All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto. The recipient of this e-mail is solely responsible for checking for the presence of Viruses or other Malware. Monsanto accepts no liability for any damage caused by any such code transmitted by or accompanying this e-mail or any attachment. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat clustering
David Rees wrote: On 3/17/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: You conveniently left out a crucial part of Tim's note which would address any security concerns as well as having to cooperate with ISPs: no I didn't, had you actually read the whole thread :) It boils down to a network problem - and if you had a secure VPN over WAN which would carry multicast, it work be technically feasible and as secure as your VPN. So the question becomes: Does your VPN support multicast? -Dave Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getParameter().getBytes() behaves differently on Linux
Dear all, I think something is wrong with parsing parameters for get requests with binary encoding, although request.getCharacterEncoding() is null, the output is different in red hat linux, consider the following test case: Servlet code protected void doGet(HttpServletRequest request, HttpServletResponse res) throws ServletException, IOException { System.out.println( Query String is + request.getQueryString() ); String text = request.getParameter( text ); for( byte b : text.getBytes() ) System.out.print( 0x + Integer.toHexString( b ) + ' ' ); } client code get( http://host:port/app/servletname?text=%24%F6%10%30%00; ); private static String get(String url) throws IOException { try { URL _url = new URL(url); InputStream _is = _url.openStream(); int length = _is.available(); byte[] _out = new byte[length]; _is.read(_out, 0, length); _is.close(); return new String(_out); } catch (Exception e) {} return null; } end of code Windows Output: Query String is text=%24%F6%10%30%00 0x24 0xfff6 0x10 0x30 0x0 Linux output: Query String is text=%24%F6%10%30%00 0x24 0xffc3 0xffb6 0x10 0x30 0x0 version used is: Using CATALINA_BASE: /usr/tomcat Using CATALINA_HOME: /usr/tomcat Using CATALINA_TMPDIR: /usr/tomcat/temp Using JRE_HOME: /usr/java/jdk1.5.0_06 Server version: Apache Tomcat/5.5.16 Server built: Mar 4 2006 08:22:29 Server number: 5.5.16.0 OS Name:Linux OS Version: 2.4.21-32.0.1.ELsmp Architecture: i386 JVM Version:1.5.0_06-b05 JVM Vendor: Sun Microsystems Inc. What do you think the reason for this discripancy? Many thanks in advance, Yours, Ahmed Ashour - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.
Re: running SSI on Tomcat 5.5.15
I'll try to supply as possible so that we don't have to go back and forth. Directory Structure (all seems to be correct, based on unpacking and deploying server to C:\) C:\apache-tomcat-5.5.15 - web.xml is in C:\apache-tomcat-5.5.15\conf\web.xml - servlet-ssi.jar is in C:\apache-tomcat-5.5.15\servlets\lib\servlets-ssi.jar (renamed) All of my test JSPs and Servlets are in C:\apache-tomcat-5.5.15\webapps\ and they seem to run fine from there. ..\jsp-examples ..\servlets-examples I've set up a testdir directory under ROOT. the web.xml is as follows: !-- 3/8 - taking comments out here to enable SSI servlet, also changing virtual to 1 for relative, replace -- after /servlet to restore back comments; tried the virtualWebappRelative value as 0 and 1 - same result; Not sure if -- servlet servlet-namessi/servlet-name servlet-class org.apache.catalina.ssi.SSIServlet /servlet-class init-param param-namebuffered/param-name param-value1/param-value /init-param init-param param-namedebug/param-name param-value1/param-value /init-param init-param param-nameexpires/param-name param-value666/param-value /init-param init-param param-nameisVirtualWebappRelative/param-name param-value0/param-value /init-param load-on-startup4/load-on-startup /servlet SERVER SIDE INCLUDES LIVE ON PUBLIC DOMAIN: http://deborahpangle.com/dp/logo.shtml http://deborahpangle.com/dp/timedisplay.shtml CODE FOR LOGO.SHTML !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body !--#include virtual=images/logo.gif-- /body /html CODE FOR TIME.SHTML http://deborahpangle.com/dp/logo.shtml http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 / titleUntitled Document/title /head bodyThe Greenwich Mean Time is !--#echo var=DATE_GMT-- and I am so happy to be here. /body /html ENVIRONMENT VARIABLES I can run JSPs, applets, and servlets ok, I think these are ok. CLASSPATH variable is set with this value (the Servlets+JSP directory follows from Marty Hall's coreservlets training, but currently there're no servlets or JSPs in there. C:\Servlets+JSP;C:\apache-tomcat-5.5.15\common\lib\servlet-api.jar;C:\apache-tomcat.5.5.15\common\lib\jsp-api.jar JAVA_HOME variable is C:\j2sdk1.4.2_11 JRE_HOME variable is C:\Program Files\Java\jre.5.0_06 -lee
Re: getParameter().getBytes() behaves differently on Linux
getBytes() is deprecated for the reason that different VMs/OSs have different default encoding. could that be the cause of your problem? what if you try getBytes(ISO-8859-1) on both platforms, do you still get diff results? Filip Ahmed Ashour wrote: Dear all, I think something is wrong with parsing parameters for get requests with binary encoding, although request.getCharacterEncoding() is null, the output is different in red hat linux, consider the following test case: Servlet code protected void doGet(HttpServletRequest request, HttpServletResponse res) throws ServletException, IOException { System.out.println( Query String is + request.getQueryString() ); String text = request.getParameter( text ); for( byte b : text.getBytes() ) System.out.print( 0x + Integer.toHexString( b ) + ' ' ); } client code get( http://host:port/app/servletname?text=%24%F6%10%30%00; ); private static String get(String url) throws IOException { try { URL _url = new URL(url); InputStream _is = _url.openStream(); int length = _is.available(); byte[] _out = new byte[length]; _is.read(_out, 0, length); _is.close(); return new String(_out); } catch (Exception e) {} return null; } end of code Windows Output: Query String is text=%24%F6%10%30%00 0x24 0xfff6 0x10 0x30 0x0 Linux output: Query String is text=%24%F6%10%30%00 0x24 0xffc3 0xffb6 0x10 0x30 0x0 version used is: Using CATALINA_BASE: /usr/tomcat Using CATALINA_HOME: /usr/tomcat Using CATALINA_TMPDIR: /usr/tomcat/temp Using JRE_HOME: /usr/java/jdk1.5.0_06 Server version: Apache Tomcat/5.5.16 Server built: Mar 4 2006 08:22:29 Server number: 5.5.16.0 OS Name:Linux OS Version: 2.4.21-32.0.1.ELsmp Architecture: i386 JVM Version:1.5.0_06-b05 JVM Vendor: Sun Microsystems Inc. What do you think the reason for this discripancy? Many thanks in advance, Yours, Ahmed Ashour - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getParameter().getBytes() behaves differently on Linux
Dear Filip, That solves it, many many thanks. Just a comment if others went into same problem: * request.setCharacterEncoding(ISO-8859-1); does not solve the problem * getBytes() is not deprecated, it uses the platform's default charset instead. Thanks again, Ahmed Ashour Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: getBytes() is deprecated for the reason that different VMs/OSs have different default encoding. could that be the cause of your problem? what if you try getBytes(ISO-8859-1) on both platforms, do you still get diff results? Filip Ahmed Ashour wrote: Dear all, I think something is wrong with parsing parameters for get requests with binary encoding, although request.getCharacterEncoding() is null, the output is different in red hat linux, consider the following test case: Servlet code protected void doGet(HttpServletRequest request, HttpServletResponse res) throws ServletException, IOException { System.out.println( Query String is + request.getQueryString() ); String text = request.getParameter( text ); for( byte b : text.getBytes() ) System.out.print( 0x + Integer.toHexString( b ) + ' ' ); } client code get( http://host:port/app/servletname?text=%24%F6%10%30%00; ); private static String get(String url) throws IOException { try { URL _url = new URL(url); InputStream _is = _url.openStream(); int length = _is.available(); byte[] _out = new byte[length]; _is.read(_out, 0, length); _is.close(); return new String(_out); } catch (Exception e) {} return null; } end of code Windows Output: Query String is text=%24%F6%10%30%00 0x24 0xfff6 0x10 0x30 0x0 Linux output: Query String is text=%24%F6%10%30%00 0x24 0xffc3 0xffb6 0x10 0x30 0x0 version used is: Using CATALINA_BASE: /usr/tomcat Using CATALINA_HOME: /usr/tomcat Using CATALINA_TMPDIR: /usr/tomcat/temp Using JRE_HOME: /usr/java/jdk1.5.0_06 Server version: Apache Tomcat/5.5.16 Server built: Mar 4 2006 08:22:29 Server number: 5.5.16.0 OS Name: Linux OS Version: 2.4.21-32.0.1.ELsmp Architecture: i386 JVM Version: 1.5.0_06-b05 JVM Vendor: Sun Microsystems Inc. What do you think the reason for this discripancy? Many thanks in advance, Yours, Ahmed Ashour - Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Mail Use Photomail to share photos without annoying attachments.