CGIservlet strips socket permissions from CGI on windows
It's a long story about why I'm running a CGI under Tomcat (okay, it's an older app, but it plugs nicely into Tomcat authentication). My Tcl CGI script opens a socket. On Unix, this all works fine. On windows server 2003, the Tcl script returns invalid argument when the socket command is attempted. If I run the script from cmd as administrator, it opens the socket just fine. I wrote a short java program to call the script, launched the Tcl script from Java, and it opens the socket fine. I'm running Tomcat 4.1.31 as 'administrator' (perhaps not smart, but just testing right now). I've tried changing the catalina.policy file to: grant { permission java.security.AllPermission; }; My understanding is that this grants AllPermission to everything. Still no joy. Perhaps I'm lost in Windows security land (it's a place I don't want to go without a gun). All I wanted to do was open a socket from my CGI script. Can anybody here tell me how to fix this? Thanks much (in advance), Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cluster tcpThreadCount
Thanks for the response. What version was fastasyncqueue implemented? I am still running jakarta-tomcat-5.0 There are so many different values Is this a good default to start with (from the doc page)?? Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=fastasyncqueue doTransmitterProcessingStats=true doProcessingStats=true doWaitAckStats=true queueTimeWait=true queueDoStats=true queueCheckLock=true ackTimeout=15000 waitForAck=true keepAliveTimeout=8 keepAliveMaxRequestCount=-1/ -Original Message- From: Peter Rossbach [mailto:[EMAIL PROTECTED] Sent: Saturday, August 27, 2005 1:41 AM To: Tomcat Users List Subject: Re: Cluster tcpThreadCount Hey Randy, tcpThreadCount is the number of parallel NIO receiver threads. Every tomcat cluster node with pooled mode has 25 sender threads (Default). Normally two receiver thread per backup node are calc. More recevier worker means that you produce more load for replication at backup! At heavy loaded site I use only the fastasyncqueue mode. This mode has at my test case better performance and more guaranty that replication works well. You can also switch to the domain cluster model. Install more nodes with different backup domainnodes. Example Apache 1 and four tomcats T01 and T03 are inside domain A ( same mcast port) T02 and T04 are inside domain B ( same mcast port) T01 and T02 living at box B1 T03 and T04 living at box B2 Peter PS: When you used tomcat 5.5.9 don't forget to install the cluster fix pack ( s. bugzilla) Randy Paries schrieb: Hello, How do I determine what value I should set tcpThreadCount to Currently I have the setting below and a very busy app server. Thanks Randy Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=10.0.0.88 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6 / Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled autoConnect=true waitForAck=true sendAllSessions=false sendAllSessionsSize=100 compress=true ackTimeout=15000/ - 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]
Cluster tcpThreadCount
Hello, How do I determine what value I should set tcpThreadCount to Currently I have the setting below and a very busy app server. Thanks Randy Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=10.0.0.88 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6 / Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled autoConnect=true waitForAck=true sendAllSessions=false sendAllSessionsSize=100 compress=true ackTimeout=15000/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clustering problems
Hello I have two tomcat servers (flanders and krusty) Their server.xmls are below they have two nic cards. The incoming http requests come in via the 192.168 ips and go out the real ips 66.208 the 192.168 nics are on a gigbit network When my servers get really busy i messages in the log file (see below) Once this happens my httpd starts backing up and it gets real ugly fast. I have to stop both instances and restart them Does my config look ok? any suggestions? Thanks Randy From log file Aug 25, 2005 3:22:36 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberDisappeared INFO: Received member disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.0.20 4:4001,192.168.0.204,4001, a live=47087979] Aug 25, 2005 3:22:37 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.0.204:4001 ,192.168.0.204,4001, aliv e=47092679] Aug 25, 2005 3:22:51 PM org.apache.catalina.cluster.tcp.SocketSender waitForAck WARNING: Wasn't able to read acknowledgement from server[/192.168.0.204:4001] in 15000 ms. Disconnecting socket, and trying ag ain. Aug 25, 2005 3:22:51 PM org.apache.catalina.cluster.tcp.ReplicationTransmitter sendMessageData WARNING: Unable to send replicated message, is server down? java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.net.SocketInputStream.read(SocketInputStream.java:182) at org.apache.catalina.cluster.tcp.SocketSender.waitForAck(SocketSender.java:13 4) at org.apache.catalina.cluster.tcp.SocketSender.sendMessage(SocketSender.java:1 25) at org.apache.catalina.cluster.tcp.PooledSocketSender.sendMessage(PooledSocketS ender.java:119) at org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessageData(Repli cationTransmitter.java:117) at org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessage(Replicati onTransmitter.java:149) at org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(SimpleTcpCluster.java: 409) at org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(SimpleTcpCluster.java: 417) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.jav a:202) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:296) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:372) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:694) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:626) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:644) at java.lang.Thread.run(Thread.java:534) Aug 25, 2005 3:22:51 PM org.apache.catalina.cluster.tcp.SocketSender waitForAck WARNING: Wasn't able to read acknowledgement from server[/192.168.0.204:4001] in 15000 ms. Disconnecting socket, and trying ag ain. Aug 25, 2005 3:22:51 PM org.apache.catalina.cluster.tcp.SocketSender waitForAck WARNING: Wasn't able to read acknowledgement from server[/192.168.0.204:4001] in 15000 ms. Disconnecting socket, and trying ag ain. Flanders - 192.168.0.203 Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.9 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.0.203 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6
RE: TC Apache integration
Chuck I have been out of the loop for a while. My Tomcat 5 has been running great with apache 2 But are you saying that they have optimized Tomcat 5.5.9 and it does not make sense to use apache has the front end? Thanks RP -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Thursday, July 28, 2005 12:57 AM To: Tomcat Users List Subject: RE: TC Apache integration From: Paul Wallace [mailto:[EMAIL PROTECTED] Subject: TC Apache integration I am following the resource - http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html to try and achieve the above. I have added the line Include C:\dev\tomcat5\jakarta-tomcat-5.5.9\conf\jk\mod_jk.conf-auto to my httpd.conf file. I can't answer your questions, since, in general, Tomcat 5.5.9 has outgrown the need to be front-ended by httpd, so I don't use it. However, I do have a question for you: why would you think the 3.2 Tomcat doc has any relevance to the 5.5.9 release? Have you tried perusing the 5.5 doc? - 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]
Help with setting up aliases , it kind of works , but the getRealPath does not
Hello I will try to be brief I am running apache 2, tomcat 5 I currently have this configuration /home/topdomain= www.topdomain.com /home/topdomain/subdomain1 = sub1.topdomain.com /home/topdomain/subdomain2 = sub2.topdomain.com under each subdomain i have users. ie /home/topdomain/subdomain1/usera = http://sub1.topdomain.com/usera So this kind of works. All these subdomains, (I will actually have 5) all share the exact code, and i really do not want to have 5 exact instances of this running. The problem i am seeing getrealPath problems. For example, when i allow the user to upload a file, i take his virt dir and do a getrealPath to get the real physical path so i can upload it to the correct place. So if i am usera on b1.topdomain.com and do a String realRPPath = application.getRealPath(/+user.getDir()); I get /home/topdomain/usera and not /home/topdomain/subdomain1/usera I hope this makes sense in my server.xml i have Host name=www.topdomain.com http://www.topdomain.com/ debug=0 appBase=/home/topdomain unpackWARs=true Aliassub1.topdomain.com/Alias Aliassub2.topdomain.com/Alias /Host - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HttpSessionListener
Hi Christopher, I think I've fixed the problem. I did two things 1) I renamed the SessionCounter to MyCounter 2) Somehow I had commented out the HttpSession session = request.getSession(true); Once I had a session started everything worked (including the Tomcat Manager sessions). I am still baffled as to why it continued to work on the developer server after the session was commented out, but assume it was cached somehow. I finally noticed it after rebooting the system and finding the developer server having the same problem. A little humbling, but a happy ending. Thanks for your help! randy -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 2:01 AM To: Tomcat Users List Subject: Re: HttpSessionListener Hi Randy, Randy George wrote: Hi Will and Christopher, Good thought. I shut down Tomcat and started it again with a clean set of logs: localhost.2005-05-25.log . . May 25, 2005 11:22:17 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() May 25, 2005 11:27:45 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: sessionCreated('BD963D7E6AACE0E2387F37919BB277FC') I interpret this to show that the listener element in web.xml is initialized and later a sessionCeated() method was actually called: . . public synchronized void sessionCreated (HttpSessionEvent se) { System.out.println(sessionCreated +sessionCount); sessionCount++; } However, there is no entry in the stout log so whatever sessionCreated method is called it is not the one registered? listener listener-classcom.test.SessionCounter/listener-class /listener Yes that is my thought, too. There is a SessionListener initialized but apparently not yours. You should put a log statement into the constructor of your listener and make sure. You didn't answer my question about deployment: do you deploy your application on the development and the production box in the same way. If not, you should try to do it in the same way on the devel box as you do on the prod box and look if the problem appears on the prod box, too. Another idea: the name (com.test.SessionCounter) of your listenere is not very unique. Maybe there is a conflcit with an existing class in Tomcats shared or common folder on the production system. Are there any other applications installed on the production tomcat? I also just noticed that the Tomcat WebApp Manager is showing only 0's for sessions regardless of how many sessions are started? That is really strange. Are you sure that you are hitting the production tomcat with your tests? Any other log entries which could confirm that? greetings, Christoph - 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: HttpSessionListener
Hi Christopher, I think I've fixed the problem. I did two things 1) I renamed the SessionCounter to MyCounter 2) Somehow I had commented out the HttpSession session = request.getSession(true); Once I had a session started everything worked (including the Tomcat Manager sessions). I am still baffled as to why it continued to work on the developer server after the session was commented out, but assume it was cached somehow. I finally noticed it after rebooting the system and finding the developer server having the same problem. A little humbling, but a happy ending. Thanks for your help! randy -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 2:01 AM To: Tomcat Users List Subject: Re: HttpSessionListener Hi Randy, Randy George wrote: Hi Will and Christopher, Good thought. I shut down Tomcat and started it again with a clean set of logs: localhost.2005-05-25.log . . May 25, 2005 11:22:17 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() May 25, 2005 11:27:45 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: sessionCreated('BD963D7E6AACE0E2387F37919BB277FC') I interpret this to show that the listener element in web.xml is initialized and later a sessionCeated() method was actually called: . . public synchronized void sessionCreated (HttpSessionEvent se) { System.out.println(sessionCreated +sessionCount); sessionCount++; } However, there is no entry in the stout log so whatever sessionCreated method is called it is not the one registered? listener listener-classcom.test.SessionCounter/listener-class /listener Yes that is my thought, too. There is a SessionListener initialized but apparently not yours. You should put a log statement into the constructor of your listener and make sure. You didn't answer my question about deployment: do you deploy your application on the development and the production box in the same way. If not, you should try to do it in the same way on the devel box as you do on the prod box and look if the problem appears on the prod box, too. Another idea: the name (com.test.SessionCounter) of your listenere is not very unique. Maybe there is a conflcit with an existing class in Tomcats shared or common folder on the production system. Are there any other applications installed on the production tomcat? I also just noticed that the Tomcat WebApp Manager is showing only 0's for sessions regardless of how many sessions are started? That is really strange. Are you sure that you are hitting the production tomcat with your tests? Any other log entries which could confirm that? greetings, Christoph - 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: HttpSessionListener
Hi Jacob, Thanks for the reply. My situation is a little more straightforward than the replication cluster you are dealing with. In my case the first server is simply the development environment and the second server is the production deployment server. The two environments use identical OS and Tomcat so I am baffled at why HttpSessionListener will only work on the server used for development. Thanks Randy -Original Message- From: Jacob Champlin [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 8:51 AM To: tomcat-user@jakarta.apache.org Subject: Re: HttpSessionListener Randy, I don't believe you have session replication set up in your cluster. This is why when a session is created it only calls your HttpSessionListener on one box. The second box will only get the session if its replicated over to that box. However! I tried to do the same thing and I was getting server lockups when it a cluster. The HttpSessionListener would work fine on a single box, but in a cluster both servers would lock up. It is my belief that there is some concurrency issue in Tomcat/Session Replication/HttpSessionListeners. However, I never found anything firm, as is usually the case with concurrency issues. Well I would love to hear if you get this working. Jacob Champlin EMO Corporation - 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: HttpSessionListener
Hi Jacob, Thanks for the reply. My situation is a little more straightforward than the replication cluster you are dealing with. In my case the first server is simply the development environment and the second server is the production deployment server. The two environments use identical OS and Tomcat so I am baffled at why HttpSessionListener will only work on the server used for development. Thanks Randy -Original Message- From: Jacob Champlin [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 8:51 AM To: tomcat-user@jakarta.apache.org Subject: Re: HttpSessionListener Randy, I don't believe you have session replication set up in your cluster. This is why when a session is created it only calls your HttpSessionListener on one box. The second box will only get the session if its replicated over to that box. However! I tried to do the same thing and I was getting server lockups when it a cluster. The HttpSessionListener would work fine on a single box, but in a cluster both servers would lock up. It is my belief that there is some concurrency issue in Tomcat/Session Replication/HttpSessionListeners. However, I never found anything firm, as is usually the case with concurrency issues. Well I would love to hear if you get this working. Jacob Champlin EMO Corporation - 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: HttpSessionListener
Hi Will and Christopher, Good thought. I shut down Tomcat and started it again with a clean set of logs: localhost.2005-05-25.log . . May 25, 2005 11:22:17 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() May 25, 2005 11:27:45 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: sessionCreated('BD963D7E6AACE0E2387F37919BB277FC') I interpret this to show that the listener element in web.xml is initialized and later a sessionCeated() method was actually called: . . public synchronized void sessionCreated (HttpSessionEvent se) { System.out.println(sessionCreated +sessionCount); sessionCount++; } However, there is no entry in the stout log so whatever sessionCreated method is called it is not the one registered? listener listener-classcom.test.SessionCounter/listener-class /listener I also just noticed that the Tomcat WebApp Manager is showing only 0's for sessions regardless of how many sessions are started? Thanks Randy -Original Message- From: Will Hartung [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 10:46 AM To: Tomcat Users List Subject: Re: HttpSessionListener From: Christoph Kutzinski [EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 9:04 AM I suspect that the Listener class is not found on the production server. You should check your deployment. Are you deplyoing via WAR files in both cases? Yea, I would make sure that your listener is even being instantiated. Tomcat is pretty quiet with things like Listners, it doens't write error or output where you typically see it for you application. Check all of your logs to make sure the class is loading and starting up correctly. Regards, Will Hartung ([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: HttpSessionListener
Hi Will and Christopher, Good thought. I shut down Tomcat and started it again with a clean set of logs: localhost.2005-05-25.log . . May 25, 2005 11:22:17 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() May 25, 2005 11:27:45 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: sessionCreated('BD963D7E6AACE0E2387F37919BB277FC') I interpret this to show that the listener element in web.xml is initialized and later a sessionCeated() method was actually called: . . public synchronized void sessionCreated (HttpSessionEvent se) { System.out.println(sessionCreated +sessionCount); sessionCount++; } However, there is no entry in the stout log so whatever sessionCreated method is called it is not the one registered? listener listener-classcom.test.SessionCounter/listener-class /listener I also just noticed that the Tomcat WebApp Manager is showing only 0's for sessions regardless of how many sessions are started? Thanks Randy -Original Message- From: Will Hartung [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 10:46 AM To: Tomcat Users List Subject: Re: HttpSessionListener From: Christoph Kutzinski [EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 9:04 AM I suspect that the Listener class is not found on the production server. You should check your deployment. Are you deplyoing via WAR files in both cases? Yea, I would make sure that your listener is even being instantiated. Tomcat is pretty quiet with things like Listners, it doens't write error or output where you typically see it for you application. Check all of your logs to make sure the class is loading and starting up correctly. Regards, Will Hartung ([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: HttpSessionListener
Hello, I have two identical Tomcat 5.5.9 servers setup on two different Windows servers. On one the HttpSessionListener which I am using to count active sessions works fine. However on the second it appears that the HttpSessionListener is never notified of sessionCreated or sessionDestroyed events? I have identical webapps/TestCounter as well as identical conf/server.xml and conf/web.xml files The application web.xml contains a listener element: listener listener-classtest.SessionCounter/listener-class /listener Is there some additional setting or authorization required to make the Session Listener work on the second system? Thanks
Re: HttpSessionListener
Hello, I have two identical Tomcat 5.5.9 servers setup on two different Windows servers. On one the HttpSessionListener which I am using to count active sessions works fine. However on the second it appears that the HttpSessionListener is never notified of sessionCreated or sessionDestroyed events? I have identical webapps/TestCounter as well as identical conf/server.xml and conf/web.xml files The application web.xml contains a listener element: listener listener-classtest.SessionCounter/listener-class /listener Is there some additional setting or authorization required to make the Session Listener work on the second system? Thanks
RE: Can mulitple domains share one web app?
So would this be an alias within apache or tomcat? Thanks Randy From: Parsons Technical Services [EMAIL PROTECTED] Subject: Re: Can mulitple domains share one web app? Date: Fri, 20 May 2005 21:14:26 GMT Prev Next Prev by Thread Next by Thread Alias might do what you want with one reservation, you cannot have www.mydomain.com/bob www.yourdomain.com/bob as different folders. These will be the same folder. So each /folder will have to be unique even though the domain names are different. Doug - Original Message - From: Randy Paries [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Friday, May 20, 2005 4:55 PM Subject: Can mulitple domains share one web app? Hello, I will try to ask this question so it makes sense. I have a webapp. Currently I have 2000 people that share the same web app For example www.mydomain.com/sue www.mydomain.com/fred Etc All these guys have their own directories, but they are a single web app. Now I have many (100s ) that want their own domains. I do not want to create 100 webapps Currently have a work around where www.sue.com gets redirected via apache to www.mydomain.com/sue So this way they start at their domain, but the immediately they see the www.mydomain.com/sue So is there a way to have one webapp share multiple domains? Thanks Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message Index: [Date] [Author] [Thread] Prev Next Prev by Thread Next by Thread - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can mulitple domains share one web app?
Hello, I will try to ask this question so it makes sense. I have a webapp. Currently I have 2000 people that share the same web app For example www.mydomain.com/sue www.mydomain.com/fred Etc All these guys have their own directories, but they are a single web app. Now I have many (100s ) that want their own domains. I do not want to create 100 webapps Currently have a work around where www.sue.com gets redirected via apache to www.mydomain.com/sue So this way they start at their domain, but the immediately they see the www.mydomain.com/sue So is there a way to have one webapp share multiple domains? Thanks Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL Appliance and Tomcat5.0.30/CoyoteConnector
We employ an SSL appliance in front of servers running Tomcat5 stand-alone and wish to configure the CoyoteConnector as we have done previously with Tomcat4: Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8543 minProcessors=16 maxProcessors=384 enableLookups=false acceptCount=128 debug=0 connectionTimeout=30 scheme=https secure=true disableUploadTimeout=true proxyName=localhost proxyPort=443/ However, since secure=true is being specified, Http11Protocol.checkSocketfactory() in Tomcat 5.0.30 is attempting to create a secure SSL ServerSocketFactory. Of course, this fails since other SSL configuration parameters are not present. Since we are behind and SSL appliance, we really want just an ordinary ServerSocketFactory to be used and request.isSecure() to return true within our web applications. As I noted above, a similar configuration used to work for us on Tomcat 4.1. Short of implementing a custom SSLImplementation and configuring it using an imbedded Factory/ tag within the Connector definition, is there any way to force Tomcat 5.0/Http11Protocol to use a default ServerSocketFactory? Randy Watler - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Remote debugging with tomcat windows
Hello I am running tomcat 5 on windoze xp and trying to get remote debugging to work. I can do it fine when the server is linux but can not get it to work with windoze. In the java options (in the tomcat properties dialog) I put the following -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 In my log file I get ::: (even if all I add is -Xdebug) Thanks for any help [2005-03-07 15:54:16] [415 javajni.c] [error] CreateJavaVM Failed [2005-03-07 15:54:16] [770 prunsrv.c] [error] Failed initializing java C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar [2005-03-07 15:54:16] [982 prunsrv.c] [error] ServiceStart returned 2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Remote debugging with tomcat windows
If I only do -Xdebug I still get the error messages Is 1.5 a requirement for windoze??? I have remote debugged before with way earlier versions on linux Thanks -Original Message- From: Ramu, Vinod [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 4:07 PM To: Tomcat Users List; Will Norris Subject: RE: Remote debugging with tomcat windows Hi, This could be because Tomcat uses other -D option, which I am not exactly sure of (refer the doc). Besides, you need jdk 1.5XXX and you have to start the server from the TOMCAT_HOME directory. Also try to set the suspend=n option to suspend=y this will make the debuggee to wait till the debugger joins the debuggee. Hope this helps u Vinod -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 4:56 PM To: 'Tomcat Users List'; 'Will Norris' Subject: Remote debugging with tomcat windows Hello I am running tomcat 5 on windoze xp and trying to get remote debugging to work. I can do it fine when the server is linux but can not get it to work with windoze. In the java options (in the tomcat properties dialog) I put the following -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 In my log file I get ::: (even if all I add is -Xdebug) Thanks for any help [2005-03-07 15:54:16] [415 javajni.c] [error] CreateJavaVM Failed [2005-03-07 15:54:16] [770 prunsrv.c] [error] Failed initializing java C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar [2005-03-07 15:54:16] [982 prunsrv.c] [error] ServiceStart returned 2 - 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]
Help with tomcat on windoze/nfs
Hello, I have the unfortunate opportunity of having to set up tomcat on windoze (sorry I am a linux bigot) I have this servlet that has to run a windows program. (that works fine) I have to create a directory on a NFS mount. In my test servlet, I have this snippet of code(see below) If I do /myservlet?dir=c:/ (is see it ok) If I do /myservlet?dir=z:/ (z is a mapped nfs mount, it does not see it) Here is the kicker, I wrote a little class that was basically the same but just a normal Java app, and it see z:/ OK Help??? Thanks === //DIR is a param passed in PrintWriter out = null; res.setContentType(text/html); out = new PrintWriter (res.getOutputStream()); out.println( looking for dir +DIR+BR); File fpath = new File(DIR); out.println(path--+fpath.getAbsolutePath()); if ( !fpath.exists() ){ out.println(Does not exist); }else{ out.println(exist); } out.close(); === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with tomcat on windoze/nfs
I assume the map is ok, since I can run a java app and it works fine, It is only when I call it from a servlet it does not Thanks -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 4:15 PM To: 'Tomcat Users List' Subject: RE: Help with tomcat on windoze/nfs How is the drive mapped? By what logged-in windows user? Is it the same user that Tomcat is running as, and are you sure? ;) Mike Curwen -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 3:51 PM To: 'Tomcat Users List' Subject: Help with tomcat on windoze/nfs Hello, I have the unfortunate opportunity of having to set up tomcat on windoze (sorry I am a linux bigot) I have this servlet that has to run a windows program. (that works fine) I have to create a directory on a NFS mount. In my test servlet, I have this snippet of code(see below) If I do /myservlet?dir=c:/ (is see it ok) If I do /myservlet?dir=z:/ (z is a mapped nfs mount, it does not see it) Here is the kicker, I wrote a little class that was basically the same but just a normal Java app, and it see z:/ OK Help??? Thanks === //DIR is a param passed in PrintWriter out = null; res.setContentType(text/html); out = new PrintWriter (res.getOutputStream()); out.println( looking for dir +DIR+BR); File fpath = new File(DIR); out.println(path--+fpath.getAbsolutePath()); if ( !fpath.exists() ){ out.println(Does not exist); }else{ out.println(exist); } out.close(); === - 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]
Compression in the server.xml
Could some one explain the downsides of setting compression=on in the server.xml I have a web app that averages 2 million hits aday. The static and images are handled using apache. I am trying to understand what the compression setting is used for in the server.xml and what are the ramifications. I found out about the setting reading http://brandlay.com/wojtek/publ/tomcat.jsp that was on the list earlier today. any bandwidth I can save would be great Thanks for the patience Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache tuning question
Hello, I thought there was an apache mailing list, but the mailing list page points to this one(as well as php and some others.) So hopefully I will not get flamed for this question. I have a rh9 box with apache 2 and tomcat 5 The apache server gets about 1.2M hits a day on average i have about 110 httpd running when i do a ps -ef | grep httpd | wc -l, but on Monday mornings my busiest I have around 225 httpd running I am trying to determine what are the best setting for my prefork MPM settings. I am getting conflicting suggestions on MaxClients on the RH pages it says:: However, it is not recommended that the value for MaxClients exceeds 256 when using the prefork MPM. BUT on other pages is says that on busy sites i should have MaxClients 512 and ServerLimit set to 1024 Not sure if my server is considered busy. I am tending to think yes. these are my current settings: IfModule prefork.c StartServers 5 MinSpareServers 5 MaxSpareServers 10 ServerLimit 400 MaxClients400 MaxRequestsPerChild 0 /IfModule Thanks for any suggestions - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help with a real ugly one
Hello all, I have this problem that I am looking for any kind of help I am not sure what is causing it, I just know how It shows itself A couple of logistical things RH9 jakarta-tomcat-5.0.24 Apache 2 So here is the problem. Every once in a while, my httpd and java(tomcat) process go thru the roof until I run out of threads or max out clients. For example this morning I was averaging 40 http processes and 50 java processes. With in 10 minutes I go to 400 http process and 430 java processes. I am trying to go thru all the log files but there is nothing so far(the access logs are huge and still trying to see a pattern.), but the servlet logs and tomcat logs there is nothing. Once I restart everything, life is fine for days or hours. This really never picks a particular time. I realize this is still pretty general, and that's what I have been fighting for months. Any help would really be appreciated. I have a script that runs every 5 minutes that counts the procs and if it goes over a threshold I get a text message. So I have a log of process every 5 Thanks randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with a real ugly one
how many traffic does have your site? it could be that you're having lots of hits LOTS!! But the usage pattern is much more linear Also, check the connection time out, maybe you have lots of connections lingering on your server. Do you JNDI connection time out or connector timeout? also, check if its from a set of IPs or just one IP that's hitting you *could* be an attack I have had these before, but can usually spot them in the log files. But no this is not the problem either Thanks Randy Randy Paries escribió: Hello all, I have this problem that I am looking for any kind of help I am not sure what is causing it, I just know how It shows itself A couple of logistical things RH9 jakarta-tomcat-5.0.24 Apache 2 So here is the problem. Every once in a while, my httpd and java(tomcat) process go thru the roof until I run out of threads or max out clients. For example this morning I was averaging 40 http processes and 50 java processes. With in 10 minutes I go to 400 http process and 430 java processes. I am trying to go thru all the log files but there is nothing so far(the access logs are huge and still trying to see a pattern.), but the servlet logs and tomcat logs there is nothing. Once I restart everything, life is fine for days or hours. This really never picks a particular time. I realize this is still pretty general, and that's what I have been fighting for months. Any help would really be appreciated. I have a script that runs every 5 minutes that counts the procs and if it goes over a threshold I get a text message. So I have a log of process every 5 Thanks randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help, why is my servlet calling init twice?
Hello, I am hoping someone can shed some light on this I am using Tomcat jakarta-tomcat-5.0.24 on RH9 When I have load-on-startup1/load-on-startup set in my web.xml My init in the servlet that I have this set for gets called twice. It is so bizarre. But, in my devel env it does not (XP, tomcat 5, intellij) If I remove the load-on-startup tag from the web.xml, then the first time I call the servlet the init gets only called once Any ideas? Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI question
Hello I am using Tomcat 5 with JNDI(mysql) Are there ways to get usages info from the POOL Like active connections, max connections (basically the state of the DB Pool) Thanks for any help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help moving from a ConnectionBroker to using Tomcats DB Connection pool
Hello, I need a little help Hopefully I can give the info needed. My servlets have been using this code I found a long time ago called DbConnectionBroker It works very well. I have been trying to move to the db connection pool of tomcat. They both use org.gjt.mm.mysql.Driver But here is where I am having problems. Hopefully this little piece of code is enough to help The thing that is different is the connection I get from the DbConnectionBroker is different that the one I get from / //this is what I do to use jndi ds = (DataSource)ctx.lookup(JNDICONTEXTLOOKUP); conn = ds.getConnection(); / So I guess my question is, is someone using JNDI with mysql and getting the LastInsertID.. When I use the connection broker this piece of code below works fine, but when I use it with jndi the line long newKey = ((org.gjt.mm.mysql.Statement)stmt).getLastInsertID() ; Gets a class cast exception Thanks for any help... try{ Statement stmt = conn.createStatement(); int ret = stmt.executeUpdate(ustr); rowsProcessed = ret; if ( ret == 0 ){ writeErrorInfo(userID,executeSql, executeSql Failed - non fatal error , no rows processed, no rows processed,-1); stmt.close(); return -1; } long newKey = ((org.gjt.mm.mysql.Statement)stmt).getLastInsertID() ; stmt.close(); return (int)newKey; }catch (SQLException e){ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please introduce a good Tomcat debug tool
I really like intellij by jetbrains RP -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 2:13 PM To: Tomcat Users List Subject: Please introduce a good Tomcat debug tool I currently run Tomcat 4.1.9 (without apache) to run JSP and ervlet. How to debug JSP and Servelt in TOMCAT? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE:JNDI question
Hello, I have an easy question about using JNDI in tomcat 5 I am using the example @ http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html Below is my server.xml entry Here is what I do not quite understand. In this little bit of code do I have to do anything to use the pooling When I do a conn.close, does that actually close the db connection, or does it just release it to the pool Thanks Sorry if this is an obvious question Randy Context initCtx = new InitialContext(); DataSource ds = (DataSource)envCtx.lookup(java:comp/env/jdbc/UnitNet); Connection conn = ds.getConnection(); ... use this connection to access the database ... conn.close(); #=== Resource name=jdbc/UnitNet auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/Unit parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value10/value /parameter parameter namemaxIdle/name value5/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valueaaa/value /parameter parameter namepassword/name valuexxx/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://marge.sss.com:3306/unit?autoReconnect=true/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namelogAbandoned/name valuefalse/value /parameter /ResourceParams #=== - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Quiestion about Average cluster serialize/send
Hello I got clustering up last night. In the log file I am seeing some thing that I was wondering if someone could help explain. What concerns me is the difference in Average cluster Is this the time it takes to serialize and send over the session info? I am trying to understand where the problem is? Thanks Box 1 log file snippet May 21, 2004 1:17:19 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=245486 over 200 ==1227 bytes/request May 21, 2004 1:19:24 AM org.apache.catalina.cluster.tcp.ReplicationValve addClusterSendTime INFO: Average cluster serialize/send time=120 ms for 300 requests (36046ms). May 21, 2004 1:36:31 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=302688 over 300 ==1008 bytes/request May 21, 2004 1:50:09 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=369314 over 400 ==923 bytes/request May 21, 2004 2:13:33 AM org.apache.catalina.cluster.tcp.ReplicationValve addClusterSendTime INFO: Average cluster serialize/send time=91 ms for 400 requests (36640ms). Box 2 log file snippet May 21, 2004 1:39:17 AM org.apache.catalina.cluster.tcp.ReplicationValve addClusterSendTime INFO: Average cluster serialize/send time=9 ms for 100 requests (947ms). May 21, 2004 1:54:41 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=158650 over 200 ==793 bytes/request May 21, 2004 2:30:03 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=216767 over 300 ==722 bytes/request May 21, 2004 3:28:29 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=283745 over 400 ==709 bytes/request May 21, 2004 4:16:34 AM org.apache.catalina.cluster.tcp.ReplicationValve addClusterSendTime INFO: Average cluster serialize/send time=9 ms for 200 requests (1846ms). May 21, 2004 4:31:52 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=354565 over 500 ==709 bytes/request May 21, 2004 5:13:15 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=436113 over 600 ==726 bytes/request May 21, 2004 5:40:14 AM org.apache.catalina.cluster.tcp.ReplicationValve addClusterSendTime INFO: Average cluster serialize/send time=8 ms for 300 requests (2401ms). May 21, 2004 5:42:29 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=511204 over 700 ==730 bytes/request May 21, 2004 6:04:17 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=587590 over 800 ==734 bytes/request May 21, 2004 6:30:18 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=657453 over 900 ==730 bytes/request - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Quiestion about Average cluster serialize/send
Thanks for any help These are two identical machines Rh9 Apache2 Tomcat 5.0.24 with hotfix Connected by gigaBit ethernet nics and switches. Box 1 is using mod_jk Box 2 is using mod_jk2 Box 1 has the real docroot Box 2 has box1 docroot mounted nfs (from previous message) Box 1 INFO: Average cluster serialize/send time=120 ms for 300 requests (36046ms). Box 2 INFO: Average cluster serialize/send time=8 ms for 300 requests (2401ms). As an FYI these are real servers in an LVS env. Both Boxes have same Cluster entries (different tcpListenAddress) Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.0.203 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;.*\.pdf;/ /Cluster -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 12:46 PM To: Tomcat Users List Subject: RE: Quiestion about Average cluster serialize/send Nr of bytes sent=369314 over 400 ==923 bytes/request average number of bytes sent over in each replication request INFO: Average cluster serialize/send time=91 ms for 400 requests (36640ms) the average time it takes to perform a replication request. IE, this is the overhead you have per request when using clustering. 91ms, this time includes: 1. Serialize the request 2. Send the request over to the other server 3. Deserialize and recreate the request (including invoke any listeners on the session) on the other server 4. Send a ACK message back to the original server 5. Receive the ACK message Usually what takes time is the deserialization of the request. Send us info on the two machines and the two configurations Filip -Original Message- From: Randy [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 10:10 AM To: 'Tomcat Users List' Subject: Quiestion about Average cluster serialize/send Hello I got clustering up last night. In the log file I am seeing some thing that I was wondering if someone could help explain. What concerns me is the difference in Average cluster Is this the time it takes to serialize and send over the session info? I am trying to understand where the problem is? Thanks Box 1 log file snippet May 21, 2004 1:17:19 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=245486 over 200 ==1227 bytes/request May 21, 2004 1:19:24 AM org.apache.catalina.cluster.tcp.ReplicationValve addClusterSendTime INFO: Average cluster serialize/send time=120 ms for 300 requests (36046ms). May 21, 2004 1:36:31 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=302688 over 300 ==1008 bytes/request May 21, 2004 1:50:09 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=369314 over 400 ==923 bytes/request May 21, 2004 2:13:33 AM org.apache.catalina.cluster.tcp.ReplicationValve addClusterSendTime INFO: Average cluster serialize/send time=91 ms for 400 requests (36640ms). Box 2 log file snippet May 21, 2004 1:39:17 AM org.apache.catalina.cluster.tcp.ReplicationValve addClusterSendTime INFO: Average cluster serialize/send time=9 ms for 100 requests (947ms). May 21, 2004 1:54:41 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=158650 over 200 ==793 bytes/request May 21, 2004 2:30:03 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=216767 over 300 ==722 bytes/request May 21, 2004 3:28:29 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=283745 over 400 ==709 bytes/request May 21, 2004 4:16:34 AM org.apache.catalina.cluster.tcp.ReplicationValve addClusterSendTime INFO: Average cluster serialize/send time=9 ms for 200 requests (1846ms). May 21, 2004 4:31:52 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=354565 over 500 ==709 bytes
RE: Quiestion about Average cluster serialize/send
Sorry for the confusion. Originally I was In a test env ( They are defend sized boxes ) Where I was not replicating the same context's on both boxes. Once I got it working in a test evn(thanks for your help) I turned It on in production last night(re: message below with config info) The load balancing is kind of distributing the requests equally, but not really. There are some issues with aol proxies, so the balance is not totally equal. But they are usually pretty close. Is it I am not understanding the message(oh what a shock that would be) Box 1 INFO: Average cluster serialize/send time=120 ms for 300 requests (36046ms). Box 2 INFO: Average cluster serialize/send time=8 ms for 300 requests (2401ms). I am just looking at these two messages and thinking that I would have thought theys should be closer, assuming it is for the same amount of requests. I am thinking that there may be more to be looking at ?? It is very obvious I am way over my head, and I appreciate the help you guys are giving me Randy -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 1:50 PM To: Tomcat Users List Subject: RE: Quiestion about Average cluster serialize/send and your loadbalancing algorithm is distributing the requests equally. also, in a previous email you wrote They are diffent sized boxes what does that mean? Filip -Original Message- From: Randy [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 1:27 PM To: 'Tomcat Users List' Subject: RE: Quiestion about Average cluster serialize/send Thanks for any help These are two identical machines Rh9 Apache2 Tomcat 5.0.24 with hotfix Connected by gigaBit ethernet nics and switches. Box 1 is using mod_jk Box 2 is using mod_jk2 Box 1 has the real docroot Box 2 has box1 docroot mounted nfs (from previous message) Box 1 INFO: Average cluster serialize/send time=120 ms for 300 requests (36046ms). Box 2 INFO: Average cluster serialize/send time=8 ms for 300 requests (2401ms). As an FYI these are real servers in an LVS env. Both Boxes have same Cluster entries (different tcpListenAddress) Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.0.203 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;.*\.pdf;/ /Cluster -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 12:46 PM To: Tomcat Users List Subject: RE: Quiestion about Average cluster serialize/send Nr of bytes sent=369314 over 400 ==923 bytes/request average number of bytes sent over in each replication request INFO: Average cluster serialize/send time=91 ms for 400 requests (36640ms) the average time it takes to perform a replication request. IE, this is the overhead you have per request when using clustering. 91ms, this time includes: 1. Serialize the request 2. Send the request over to the other server 3. Deserialize and recreate the request (including invoke any listeners on the session) on the other server 4. Send a ACK message back to the original server 5. Receive the ACK message Usually what takes time is the deserialization of the request. Send us info on the two machines and the two configurations Filip -Original Message- From: Randy [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 10:10 AM To: 'Tomcat Users List' Subject: Quiestion about Average cluster serialize/send Hello I got clustering up last night. In the log file I am seeing some thing that I was wondering if someone could help explain. What concerns me is the difference in Average cluster Is this the time it takes to serialize and send over the session info? I am trying to understand where the problem is? Thanks Box 1 log file snippet May 21, 2004 1:17:19 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=245486 over 200 ==1227 bytes/request May 21, 2004 1:19:24 AM
Load Balance question(what a people doing)
Hello, I would like to know what people are doing for their load balancing. I have a very busy web site that is a mix of static html, cgi (perl) , and j2ee stuff I am running rh9, apache 2 and tomcat 5 I am slowly migrating my perl/cgi stuff to j2ee Currently I have been trying to get a LVS setup working and just does not seem to work. (more details given if wanted) So what I am wondering is what are you guys doing. As I am looking to move more to j2ee, I am wondering if I should look at using apache2,mod_jk2 and tomcat5 load balancing, and getting rid of LVS The one part that bothers me, is all the articles and howto's show apache and tomcat load balancing on the same box. What I am thinking is having apache and tomcat on one box and then tomcat also on another box and let apache round robin the tomcat connects. Thanks for any help or guidance Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Quiestion about Average cluster serialize/send
So here is what I understand, and I want to make sure that I am reading this correctly The log entry says: Average cluster serialize/send time=120 ms for 300 requests For 300 requests it took on average 120 to serialize this data. (does this include broadcasting it to the other servers?) What kind of profile? thanks -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 4:23 PM To: Tomcat Users List Subject: RE: Quiestion about Average cluster serialize/send Is it I am not understanding the message(oh what a shock that would be) Box 1 INFO: Average cluster serialize/send time=120 ms for 300 requests (36046ms). Box 2 INFO: Average cluster serialize/send time=8 ms for 300 requests (2401ms). I am not sure why we are seeing this. I couldn't tell more unless we actually ran a profile. Try to set your tcpSelectorTimeout to 10 instead of a 100, and let me know the results Filip -Original Message- From: Randy [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 2:14 PM To: 'Tomcat Users List' Subject: RE: Quiestion about Average cluster serialize/send Sorry for the confusion. Originally I was In a test env ( They are defend sized boxes ) Where I was not replicating the same context's on both boxes. Once I got it working in a test evn(thanks for your help) I turned It on in production last night(re: message below with config info) The load balancing is kind of distributing the requests equally, but not really. There are some issues with aol proxies, so the balance is not totally equal. But they are usually pretty close. Is it I am not understanding the message(oh what a shock that would be) Box 1 INFO: Average cluster serialize/send time=120 ms for 300 requests (36046ms). Box 2 INFO: Average cluster serialize/send time=8 ms for 300 requests (2401ms). I am just looking at these two messages and thinking that I would have thought theys should be closer, assuming it is for the same amount of requests. I am thinking that there may be more to be looking at ?? It is very obvious I am way over my head, and I appreciate the help you guys are giving me Randy -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 1:50 PM To: Tomcat Users List Subject: RE: Quiestion about Average cluster serialize/send and your loadbalancing algorithm is distributing the requests equally. also, in a previous email you wrote They are diffent sized boxes what does that mean? Filip -Original Message- From: Randy [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 1:27 PM To: 'Tomcat Users List' Subject: RE: Quiestion about Average cluster serialize/send Thanks for any help These are two identical machines Rh9 Apache2 Tomcat 5.0.24 with hotfix Connected by gigaBit ethernet nics and switches. Box 1 is using mod_jk Box 2 is using mod_jk2 Box 1 has the real docroot Box 2 has box1 docroot mounted nfs (from previous message) Box 1 INFO: Average cluster serialize/send time=120 ms for 300 requests (36046ms). Box 2 INFO: Average cluster serialize/send time=8 ms for 300 requests (2401ms). As an FYI these are real servers in an LVS env. Both Boxes have same Cluster entries (different tcpListenAddress) Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.0.203 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;.*\.pdf;/ /Cluster -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 12:46 PM To: Tomcat Users List Subject: RE: Quiestion about Average cluster serialize/send Nr of bytes sent=369314 over 400 ==923 bytes/request average number of bytes sent over in each replication request INFO: Average cluster serialize/send time=91 ms for 400 requests (36640ms) the average time it takes to perform a replication request. IE, this is the overhead you have per request when using clustering. 91ms, this time includes: 1. Serialize
RE: Trying to get a Cluster/Session Replication working
DUH! thanks -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 8:55 AM To: Tomcat Users List Subject: Re: Trying to get a Cluster/Session Replication working You're problem is obvious, the application in team.xml is only running on box 2. Make sure that all your clustered applications are deployed on all servers. Filip - Original Message - From: Randy [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 11:37 PM Subject: RE: Trying to get a Cluster/Session Replication working I am saying. don't start the servers at the same time :) Sorry Brain Flatulence BTW, I am running these are user apache. That's how they run in production.. Here are the logs BOX 1 = -bash-2.05b$ ./catalina.sh run Using CATALINA_BASE: /usr/java/jakarta-tomcat Using CATALINA_HOME: /usr/java/jakarta-tomcat Using CATALINA_TMPDIR: /usr/java/jakarta-tomcat/temp Using JAVA_HOME: /usr/java/j2sdk1.4.2_04 May 19, 2004 11:31:42 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 May 19, 2004 11:31:43 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 4842 ms May 19, 2004 11:31:43 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina May 19, 2004 11:31:43 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.24 May 19, 2004 11:31:43 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled May 19, 2004 11:31:43 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start May 19, 2004 11:31:43 PM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership May 19, 2004 11:31:46 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) May 19, 2004 11:31:46 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/admin.xml May 19, 2004 11:31:47 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true May 19, 2004 11:31:47 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true May 19, 2004 11:31:49 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true May 19, 2004 11:31:55 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/balancer.xml May 19, 2004 11:31:56 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/manager.xml May 19, 2004 11:31:56 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:/usr/java/jakarta-tomcat-5.0.24/webapps/ROOT May 19, 2004 11:31:56 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:/usr/java/jakarta-tomcat-5.0.24/webapps/jsp-examples May 19, 2004 11:31:57 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL file:/usr/java/jakarta-tomcat-5.0.24/webapps/servlets-examples May 19, 2004 11:31:57 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /tomcat-docs from URL file:/usr/java/jakarta-tomcat-5.0.24/webapps/tomcat-docs May 19, 2004 11:31:57 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /webdav from URL file:/usr/java/jakarta-tomcat-5.0.24/webapps/webdav May 19, 2004 11:31:57 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled May 19, 2004 11:31:58 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) May 19, 2004 11:31:58 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled May 19, 2004 11:31:58 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) May 19, 2004 11:31:58 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 May 19, 2004 11:32:00 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 May 19, 2004 11:32:00 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=2/206 config=/usr/java/jakarta-tomcat/conf/jk2.properties May 19, 2004 11:32:00 PM
Trying to get a Cluster/Session Replication working
Hello, (sorry I could not search the mail archives, for some reason the site is down) I am following http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html and trying to get Cluster/Session Replication I have commented out the Cluster part in the sample server.xml I have two boxes runnnig rh9, with tomcat 5 When I start up box two Box 1 gets the error == INFO: Server startup in 14355 ms May 19, 2004 3:04:19 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.21:4001 ,66.208.187.21,4001, alive=31] May 19, 2004 3:04:24 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster messageDataReceived WARNING: Context manager doesn't exist: May 19, 2004 3:04:36 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberDisappeared INFO: Received member disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.2 1:4001,66.208.187.21,4001, alive=14390] May 19, 2004 3:05:41 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.21:4001 ,66.208.187.21,4001, alive=31] May 19, 2004 3:05:47 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster messageDataReceived WARNING: Context manager doesn't exist: Box 2 gets the error == INFO: Starting clustering manager...: May 19, 2004 3:05:35 PM org.apache.catalina.cluster.session.DeltaManager start WARNING: Manager[], requesting session state from org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.70:4001,66.20 8.187.70,4001, alive=121560]. This operation will timeout if no session state has been received within 60 seconds May 19, 2004 3:06:35 PM org.apache.catalina.cluster.session.DeltaManager start SEVERE: Manager[], No session state received, timing out. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trying to get a Cluster/Session Replication working
So I added LD_ASSUME_KERNEL=2.4 and exported it in catalina.sh But are saying I have to start them at the exact same time. That is not very possible in my envirnment. They are diffent sized boxes , so one starts faster than the other I still get the same two errors Randy -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 4:02 PM To: Tomcat Users List Subject: Re: Trying to get a Cluster/Session Replication working two things: 1. export LD_ASSUME_KERNEL=2.4 before you start tomcat (add it to your startscript) 2. Starting the two instances at the exact same time, no instance has a state to replicate, wait 5 seconds with one once the servers have been running for a while, it will request state from your longest running server Filip - Original Message - From: Randy [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 3:21 PM Subject: Trying to get a Cluster/Session Replication working Hello, (sorry I could not search the mail archives, for some reason the site is down) I am following http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html and trying to get Cluster/Session Replication I have commented out the Cluster part in the sample server.xml I have two boxes runnnig rh9, with tomcat 5 When I start up box two Box 1 gets the error == INFO: Server startup in 14355 ms May 19, 2004 3:04:19 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.21:4001 ,66.208.187.21,4001, alive=31] May 19, 2004 3:04:24 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster messageDataReceived WARNING: Context manager doesn't exist: May 19, 2004 3:04:36 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberDisappeared INFO: Received member disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.2 1:4001,66.208.187.21,4001, alive=14390] May 19, 2004 3:05:41 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.21:4001 ,66.208.187.21,4001, alive=31] May 19, 2004 3:05:47 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster messageDataReceived WARNING: Context manager doesn't exist: Box 2 gets the error == INFO: Starting clustering manager...: May 19, 2004 3:05:35 PM org.apache.catalina.cluster.session.DeltaManager start WARNING: Manager[], requesting session state from org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.70:4001,66.20 8.187.70,4001, alive=121560]. This operation will timeout if no session state has been received within 60 seconds May 19, 2004 3:06:35 PM org.apache.catalina.cluster.session.DeltaManager start SEVERE: Manager[], No session state received, timing out. - 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: Trying to get a Cluster/Session Replication working
Ok Here is a stupid question How do I determine what context I am replicating? Is it the distributable/ in the web.xml? thanks -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 5:33 PM To: Tomcat Users List Subject: Re: Trying to get a Cluster/Session Replication working WARNING: Manager[], requesting session state from what is the name of the context you are replicating? Manager[] should have where x is the context name. Also, send me directly startup logs from both servers (clean ones, it only one start) Filip - Original Message - From: Randy [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 4:39 PM Subject: RE: Trying to get a Cluster/Session Replication working So I added LD_ASSUME_KERNEL=2.4 and exported it in catalina.sh But are saying I have to start them at the exact same time. That is not very possible in my envirnment. They are diffent sized boxes , so one starts faster than the other I still get the same two errors Randy -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 4:02 PM To: Tomcat Users List Subject: Re: Trying to get a Cluster/Session Replication working two things: 1. export LD_ASSUME_KERNEL=2.4 before you start tomcat (add it to your startscript) 2. Starting the two instances at the exact same time, no instance has a state to replicate, wait 5 seconds with one once the servers have been running for a while, it will request state from your longest running server Filip - Original Message - From: Randy [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 3:21 PM Subject: Trying to get a Cluster/Session Replication working Hello, (sorry I could not search the mail archives, for some reason the site is down) I am following http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html and trying to get Cluster/Session Replication I have commented out the Cluster part in the sample server.xml I have two boxes runnnig rh9, with tomcat 5 When I start up box two Box 1 gets the error == INFO: Server startup in 14355 ms May 19, 2004 3:04:19 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.21:4001 ,66.208.187.21,4001, alive=31] May 19, 2004 3:04:24 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster messageDataReceived WARNING: Context manager doesn't exist: May 19, 2004 3:04:36 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberDisappeared INFO: Received member disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.2 1:4001,66.208.187.21,4001, alive=14390] May 19, 2004 3:05:41 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.21:4001 ,66.208.187.21,4001, alive=31] May 19, 2004 3:05:47 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster messageDataReceived WARNING: Context manager doesn't exist: Box 2 gets the error == INFO: Starting clustering manager...: May 19, 2004 3:05:35 PM org.apache.catalina.cluster.session.DeltaManager start WARNING: Manager[], requesting session state from org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.70:4001,66.20 8.187.70,4001, alive=121560]. This operation will timeout if no session state has been received within 60 seconds May 19, 2004 3:06:35 PM org.apache.catalina.cluster.session.DeltaManager start SEVERE: Manager[], No session state received, timing out. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trying to get a Cluster/Session Replication working
: Box 2 ./catalina.sh run Using CATALINA_BASE: /usr/java/jakarta-tomcat Using CATALINA_HOME: /usr/java/jakarta-tomcat Using CATALINA_TMPDIR: /usr/java/jakarta-tomcat/temp Using JAVA_HOME: /usr/java/j2sdk May 19, 2004 11:32:29 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 May 19, 2004 11:32:30 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 7653 ms May 19, 2004 11:32:31 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina May 19, 2004 11:32:31 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.24 May 19, 2004 11:32:31 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled May 19, 2004 11:32:31 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start May 19, 2004 11:32:31 PM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership May 19, 2004 11:32:32 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.70:4001 ,66.208.187.70,4001, alive=55740] May 19, 2004 11:32:33 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) May 19, 2004 11:32:33 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/admin.xml May 19, 2004 11:32:37 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true May 19, 2004 11:32:37 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true May 19, 2004 11:32:39 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true May 19, 2004 11:32:47 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/balancer.xml May 19, 2004 11:32:48 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/manager.xml May 19, 2004 11:32:49 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/java/jakarta-tomcat-5.0.24/conf/Catalina/localhost/team.xml May 19, 2004 11:32:50 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Starting clustering manager...: May 19, 2004 11:32:50 PM org.apache.catalina.cluster.session.DeltaManager start *ERROR HERE ( I added this comment so you could see the error easier) ***WARNING: Manager[], requesting session state from org.apache.catalina.cluster.mcast.McastMember[tcp://66.208.187.70:4001,66.20 8.187.70,4001, alive=74610]. This operation will timeout if no session state has been received within 60 seconds May 19, 2004 11:33:51 PM org.apache.catalina.cluster.session.DeltaManager start SEVERE: Manager[], No session state received, timing out. May 19, 2004 11:33:51 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:/usr/java/jakarta-tomcat-5.0.24/webapps/jsp-examples May 19, 2004 11:33:51 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL file:/usr/java/jakarta-tomcat-5.0.24/webapps/servlets-examples May 19, 2004 11:33:51 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /tomcat-docs from URL file:/usr/java/jakarta-tomcat-5.0.24/webapps/tomcat-docs May 19, 2004 11:33:52 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /webdav from URL file:/usr/java/jakarta-tomcat-5.0.24/webapps/webdav May 19, 2004 11:33:53 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 May 19, 2004 11:33:53 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 May 19, 2004 11:33:53 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=2/80 config=/usr/java/jakarta-tomcat/conf/jk2.properties May 19, 2004 11:33:54 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 83733 ms Filip -Original Message- From: Randy [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 4:40 PM To: 'Tomcat Users List' Subject: RE: Trying to get a Cluster/Session Replication working So I added LD_ASSUME_KERNEL=2.4 and exported
Preparing to do session sharing
Hello, I am upgrading my Tomcat Servers to 5 so I can take advantage of Session sharing. I have two servers that I want to share sessions. As a side note, this is in conjunction with using LVS, rh9 and apache 2 Before I try I would like to just clarify some things. 1) is it stable? I have seen lots of email traffic and some comments about The only thing worse than dealing with connectors is Clustering 1a) do people have this working successfully in a high traffic production env? 2) I am going to use Using in-memory-replication, using the SimpleTcpCluster that ships with Tomcat 5 method 3) any real-life gotcha's or advise? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: symLinks broken in tomcat 5.0.19
Host name=www.domain.com debug=0 appBase=/home/team unpackWARs=true Context path= docBase=/home/team Do you really want the Host appBase to be the same as the context docBase? Yeah this was a bad idea, and on my list to go back and change. Resources className=org.apache.naming.resources.FileDirContext allowLinking=true At one I point I thought this was no longer needed in tomcat5, and was replaced by an allowLinking attribute elsewhere (the Context itself maybe)? It definitely changed from tomcat 4 to tomcat 5. Our internet access is messed up at the moment so I don't have access to tomcat's configuration reference, but take a look there. Yoav Thanks It is now and it works Context path= docBase=/home/team allowLinking=true debug=0 reloadable=false - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: symLinks broken in tomcat 5.0.19
Thank you for the response, I have it within the Host. There are no errors or warnings in the log file. I was assuming it should be inside of the Context. From what I could tell you can put it in the engine or host and that would override the defaults for contexts created. I really only want it for this host. I have tried it both Inside the Context and inside the Host No errors Host name=www.domain.com debug=0 appBase=/home/team unpackWARs=true Context path= docBase=/home/team workDir=/usr/java/jakarta-tomcat/work/ crossContext=true debug=0 reloadable=false Resources className=org.apache.naming.resources.FileDirContext allowLinking=true / -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 3:00 PM To: Tomcat Users List Subject: RE: symLinks broken in tomcat 5.0.19 Hi, If I go to http://www.mydomain.com:8080/activeedit/ae.jsp I get a 404 If I go to http://www.mydomain.com:8080/activeedit4.0/ae.jsp it works Activeedit is a symlink to activeedit4.0 In the server.xml I have Resources className=org.apache.naming.resources.FileDirContext allowLinking=true / Where in server.xml is this? Am I missing something?? Yeah, a bunch: your symlink has the effect of deploying two different contexts. You have to be very careful with your configuration if you do this: check your logs for any warnings or errors. There are other ways to achieve what you're doing, including options that were discussed today on the list. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
symLinks broken in tomcat 5.0.19
hello I have just updated to tomcat 5.0.19 It appears that symLinks are broken If I go to http://www.mydomain.com:8080/activeedit/ae.jsp I get a 404 If I go to http://www.mydomain.com:8080/activeedit4.0/ae.jsp it works Activeedit is a symlink to activeedit4.0 In the server.xml I have Resources className=org.apache.naming.resources.FileDirContext allowLinking=true / Am I missing something?? Thanks for any information - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Looking for debug solutions
Hello, I have just recently built two new boxes. They are exhibiting some strange behavior and I am unsure how to troubleshoot. I am looking for some suggestions. My old config that ran forever was RH7, apache 1.3, mod_jk and tomcat 4.0 My two new boxes are Box 1) rh9, apache 2, mod_jk and tomcat 4.1.30 Box 2) rh9, apache 2, mod_jk2 and tomcat 5.0.19 The problem I am seeing, that my httpd and tomcat count continually rise. That is not to say they never go down. Like currently : Box 1) httpd = 71 and java = 90 Box 2) httpd = 51 and java = 111 One more thing. These are both Real Servers - LVS terms. They are part of a Linux Virtual System. Currently they are not sharing sessions, but that is why box 2 is tomcat 5. I am heading that way. Box 1 can handle everything fine, if I shut down box 2. I am not sure if this is making any sense at all. There is really nothing in the log files (except I run out of java mem) but that is when I get over 250 httpd processes. Thanks for anyhelp or any direction in how to debug this Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mod-jk2 availability for Apache 2.0.49
I have got binaries For RH9 httpd-2.0.40-21.9 Mod_jk.so and mod_jk2.so Email if you want them RP -Original Message- From: Asif Chowdhary [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 4:27 PM To: [EMAIL PROTECTED] Subject: Mod-jk2 availability for Apache 2.0.49 Hi, Does anyone know when mod-jk2 binaries will be available for Apache 2.0.49 for Red Hat Linux 9.0 Kernel 2.4.20-8. Thanks Asif - 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]
I have to be missing something simple
Hello, I have just built a new box I can not seem to talk to tomcat via the connector. And what is really frustrating I can not find anything in any of the error log files. Thanks for any help Here is the info Rh 9 Apache 2.0.40 Tomcat 4.1.30 I am using the mod_jk connector (jk-1.2.5) It built successfully on the box. If I go to http://www.domain.com:8080/jsp/test.jsp it works But if I try to go from the connector I get Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. This error is from apache not tomcat. I have these in the httpd.conf per doc LoadModule jk_module modules/mod_jk.so JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T My worker.properties # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with getting mod_jk to work with apache 2
Hello, I have just built a new box I can not seem to talk to tomcat via the connector. And what is really frustrating I can not find anything in any of the error log files. Thanks for any help Here is the info Rh 9 Apache 2.0.40 Tomcat 4.1.30 I am using the mod_jk connector (jk-1.2.5) It built successfully on the box. If I go to http://www.domain.com:8080/jsp/test.jsp it works But if I try to go from the connector I get Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. This error is from apache not tomcat. I have these in the httpd.conf per doc LoadModule jk_module modules/mod_jk.so JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T My worker.properties # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error connecting to tomcat 3, status 200
Hello, I am getting a lot of these in my log file error_log:[Mon Apr 19 13:41:52 2004] [error] mod_jk2.handler() Error connecting to tomcat 3, status 200 Is status an html status or is it a mod_jk2 status code in an h file somewhere Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting lots of these
Hello, I have tomcat 4.1.30 Apache 2 and I am using mod_jk2 I am seeing a lot of these in my error log. Could someone explain to me what these mean? Thanks error_log:[Mon Apr 19 13:41:52 2004] [error] mod_jk2.handler() Error connecting to tomcat 3, status 200 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: location of workers2.properties parameters
So was that in one place it the code or through-out? Thanks -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 8:27 AM To: 'Tomcat Users List' Subject: RE: location of workers2.properties parameters The only way I could get rid of these was to comment out the logger lines. Charlie -Original Message- From: Randy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 1:23 AM To: [EMAIL PROTECTED] Subject: location of workers2.properties parameters I can not find the doc that describes the descriptors in workers2.properties I am sorry if it is obvious , but I can not find it I have tried http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html And http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.ht ml In my error.log for my web server it is full of [Mon Apr 12 23:35:28 2004] [notice] channelApr.receive(): Received len=147 type=4 Lots and lots of these I was kindof thinking it was a setting in my workers2.properties I changed [logger.apache2] to level=INFO As a guess, but I am still getting these. Like every 10th of a second Thanks Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How two tomcats share share DocRoot
Hello, I will try to be brief , but this will a little explanation of my config to under stand the question. I have two boxes. (rh9, tomcat 4.1.30, apache ) Box1 Host name=localhost debug=0 appBase=/home/unit unpackWARs=true Context path= docBase=/home/unit crossContext=true debug=0 reloadable=false Box 2 is configured the same but /home/unit is an nfs mount. The problem is they now share the same WEB-INF dir with all the classes, etc... What I would like to do is have box 2 have it own WEB-INF, but it still needs the DocBase to point to /home/unit I though I could make the appBase /home/foo and the docBase /home/unit, but when tomcat starts up on box 2 all the jars (and I assume other working class files are still begin deployed to Deploy JAR /WEB-INF/lib/activation.jar to /home/unit/WEB-INF/lib/activation.jar I hope I have described my problem correctly Thanks for any help Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE:location of workers2.properties parameters
I can not find the doc that describes the descriptors in workers2.properties I am sorry if it is obvious , but I can not find it I have tried http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html And http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html In my error.log for my web server it is full of [Mon Apr 12 23:35:28 2004] [notice] channelApr.receive(): Received len=147 type=4 Lots and lots of these I was kindof thinking it was a setting in my workers2.properties I changed [logger.apache2] to level=INFO As a guess, but I am still getting these. Like every 10th of a second Thanks Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
location of workers2.properties parameters
I can not find the doc that describes the descriptors in workers2.properties I am sorry if it is obvious , but I can not find it I have tried http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html And http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html In my error.log for my web server it is full of [Mon Apr 12 23:35:28 2004] [notice] channelApr.receive(): Received len=147 type=4 Lots and lots of these I was kindof thinking it was a setting in my workers2.properties I changed [logger.apache2] to level=INFO As a guess, but I am still getting these. Like every 10th of a second Thanks Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Trying to start tomcat. Should be so simple
Hello all, I have got to be missing something very simple I have two identical boxes. Tomcat starts on one and not the other The jar that it says it can not find is there. /WEB-INF/lib/mm.mysql-2.0.2-bin.jar If I do ls -ls /home/unitnetWebapps/WEB-INF/lib/mm.mysql-2.0.2-bin.jar It is there Here is a snippet of my server.xml ++ Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=200 enableLookups=false redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Standalone defaultHost=localhost debug=10 Valve className=org.apache.catalina.valves.AccessLogValve directory=/var/log/httpd prefix=unitnetTomcat.com-access_log suffix=.log pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=/var/log/httpd prefix=unitnetTomcat_log. suffix=.txt timestamp=true/ Host name=localhost debug=10 appBase=/home/unitnetWebapps unpackWARs=true Context path=root docBase=/home/unitnetWebapps crossContext=true debug=0 reloadable=false ++ The error I get when I start is: ++ 2004-04-10 12:33:12 WebappLoader[root]: Deploying class repositories to work directory /usr/java/jakarta-tomcat-4.1.30/work/Standalone/localhost/root 2004-04-10 12:33:12 WebappLoader[root]: Deploy class files /WEB-INF/classes to /home/unitnetWebapps/WEB-INF/classes 2004-04-10 12:33:12 WebappLoader[root]: Deploy JAR /WEB-INF/lib/activation.jar to /home/unitnetWebapps/WEB-INF/lib/activation.jar 2004-04-10 12:33:12 WebappLoader[root]: Deploy JAR /WEB-INF/lib/activedit.jar to /home/unitnetWebapps/WEB-INF/lib/activedit.jar 2004-04-10 12:33:12 WebappLoader[root]: Deploy JAR /WEB-INF/lib/activscan.jar to /home/unitnetWebapps/WEB-INF/lib/activscan.jar 2004-04-10 12:33:12 WebappLoader[root]: Deploy JAR /WEB-INF/lib/activspell.jar to /home/unitnetWebapps/WEB-INF/lib/activspell.jar 2004-04-10 12:33:12 WebappLoader[root]: Deploy JAR /WEB-INF/lib/imap.jar to /home/unitnetWebapps/WEB-INF/lib/imap.jar 2004-04-10 12:33:12 WebappLoader[root]: Deploy JAR /WEB-INF/lib/jspellcheck.jar to /home/unitnetWebapps/WEB-INF/lib/jspellcheck.jar 2004-04-10 12:33:12 WebappLoader[root]: Deploy JAR /WEB-INF/lib/jspsmartupload.jar to /home/unitnetWebapps/WEB-INF/lib/jspsmartupload.jar 2004-04-10 12:33:12 WebappLoader[root]: Deploy JAR /WEB-INF/lib/mail.jar to /home/unitnetWebapps/WEB-INF/lib/mail.jar 2004-04-10 12:33:12 WebappLoader[root]: Deploy JAR /WEB-INF/lib/mailapi.jar to /home/unitnetWebapps/WEB-INF/lib/mailapi.jar 2004-04-10 12:33:12 WebappLoader[root]: Deploy JAR /WEB-INF/lib/mm.mysql-2.0.2-bin.jar to /home/unitnetWebapps/WEB-INF/lib/mm.mysql-2.0.2-bin.jar 2004-04-10 12:33:12 WebappLoader[root]: Deploy JAR /WEB-INF/lib/pop3.jar to /home/unitnetWebapps/WEB-INF/lib/pop3.jar 2004-04-10 12:33:12 WebappLoader[root]: Deploy JAR /WEB-INF/lib/smtp.jar to /home/unitnetWebapps/WEB-INF/lib/smtp.jar 2004-04-10 12:33:13 ContextConfig[root] Exception processing JAR at resource path /WEB-INF/lib/mm.mysql-2.0.2-bin.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/mm.mysql-2.0.2-bin.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3587) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at
RE: Trying to start tomcat. Should be so simple
Thanks of the help ls -lsL /home/unitnetWebapps/WEB-INF/lib/mm.mysql-2.0.2-bin.jar 76 -rwxrwxrwx1 apache apache 71328 Mar 24 16:23 /home/unitnetWebapps/WEB-INF/lib/mm.mysql-2.0.2-bin.jar ls -ls /home/unitnetWebapps/WEB-INF/lib/mm.mysql-2.0.2-bin.jar 0 lrwxrwxrwx1 root root 58 Apr 10 12:27 /home/unitnetWebapps/WEB-INF/lib/mm.mysql-2.0.2-bin.jar - /usr/java/jakarta-tomcat/common/lib/mm.mysql-2.0.2-bin.jar I also have this in my server.xml Resources className=org.apache.naming.resources.FileDirContext allowLinking=true / I have also tried putting a phyichal file there instead of a link This is driving me crazy Thanks for any help -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Saturday, April 10, 2004 1:32 PM To: Tomcat Users List Subject: Re: Trying to start tomcat. Should be so simple On Sat, Apr 10, 2004 at 12:46:02PM -0500, Randy Paries wrote: : I have two identical boxes. Tomcat starts on one and not the other : : The jar that it says it can not find is there. : /WEB-INF/lib/mm.mysql-2.0.2-bin.jar : If I do ls -ls /home/unitnetWebapps/WEB-INF/lib/mm.mysql-2.0.2-bin.jar : It is there : [snip] : - Root Cause - : java.io.FileNotFoundException What are the perms on said file? i.e. what's the output of ls -l on each host? If the jar is a symlink, try ls -lL -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.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]
How two tomcats share share DocRoot
Hello, I will try to be brief , but this will a little explanation of my config to under stand the question. I have two boxes. (rh9, tomcat 4.1.30, apache ) Box1 Host name=localhost debug=0 appBase=/home/unit unpackWARs=true Context path= docBase=/home/unit crossContext=true debug=0 reloadable=false Box 2 is configured the same but /home/unit is an nfs mount. The problem is they now share the same WEB-INF dir with all the classes, etc... What I would like to do is have box 2 have it own WEB-INF, but it still needs the DocBase to point to /home/unit I though I could make the appBase /home/foo and the docBase /home/unit, but when tomcat starts up on box 2 all the jars (and I assume other working class files are still begin deployed to Deploy JAR /WEB-INF/lib/activation.jar to /home/unit/WEB-INF/lib/activation.jar I hope I have described my problem correctly Thanks for any help Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CoyoteConnector startup errors
hello I have rh9, apache 2.0.49 , tomcat 4.1.30 and j2 connector, jk2-2.0.4 this is a brand new install. I appears to be working but i am getting errors when it starts CoyoteConnector Coyote can't register jmx for protocol I have seen a couple of references to this in the list archives, but have not seen any solutions. Has any one rectified this problem? Thanks randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Building jk2-2.0.4 on rh9 having some problems
Finally got it to work The only way I finally got it to work configured at per doc on the web site Was to get the latest apache2 and build from scratch(no rpms) Then build t he connector. Now all works fine (so far) Thanks for all the suggestions. -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 8:02 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ahh, that's different than No such file. Are you trying to use the apr stuff in the jk2.properties? I haven't been able to get it to work on my Linux box, no matter what libs I include. When I finally do get it to take the libs and I don't get that particular error, I get a different one. I have to use channelSocket and not the apr or jni stuff. My handler list looks like this: handler.list=channelSocket,request Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 5:29 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Thanks for you help file /usr/lib/httpd/modules/mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped The load module is correct Still get Cannot load /etc/httpd/modules/mod_jk2.so into server: /etc/httpd/modules/mod_jk2.so: undefined symbol: apr_socket_send -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 3:20 PM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ok. If you type file mod_jk2.so what does it tell you? It should say something like: mod_jk2.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped Next, Check your LoadModules statement carefully. Make sure it says what you think it says. It should say something like: LoadModule jk2_module modules/mod_jk2.so Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 4:12 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems I have mod_perl and apache loads it fine. Thanks Rp -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:26 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ok. Do you have any other modules in there and is apache loading them? -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 12:25 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Yes mod_jk2.so exists Thanks for your help -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:22 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Should. I guess let's start at the beginning...Does the module exist in /etc/httpd/modules? -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:58 AM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Actually ls -ls /etc/httpd/ total 12 0 lrwxrwxrwx1 root root 25 Mar 23 16:13 build - ../../usr/lib/httpd/build 4 drwxr-xr-x7 root root 4096 Apr 5 10:20 conf 4 drwxr-xr-x2 root root 4096 Apr 1 10:22 conf.d 4 drwxr-xr-x2 apache apache 4096 Mar 23 11:14 local 0 lrwxrwxrwx1 root root 19 Mar 22 08:36 logs - ../../var/log/httpd 0 lrwxrwxrwx1 root root 27 Mar 22 08:36 modules - ../../usr/lib/httpd/modules 0 lrwxrwxrwx1 root root 13 Mar 22 08:36 run - ../../var/run Apache should be able to traverse a SYM link shouldn't it? RP -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 10:50 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Your running into pathing problems. Your using /usr/lib/httpd/modules and /etc/httpd/modules. apache wants to use /etc/httpd/modules. Copy your mod_jk2.so there. Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:46 AM To: 'Tomcat Users List' Subject: Building jk2-2.0.4 on rh9 having some problems Hello I am building jk2-2.0.4 on rh9 and apache 2 I first configure ./configure --with-apxs2=/usr/sbin/apxs --with-java-home=${JAVA_HOME} --with-java-platform=2 --enable-jni Make (no errors) cd ../build/jk2/apache2 When I do this I ge the following error apxs -n jk2 -i mod_jk2.so /usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/httpd/build/libtool' mod_jk2.so /usr/lib/httpd/modules /usr/lib/httpd/build/libtool --mode=install cp mod_jk2.so /usr/lib/httpd/modules/ cp
Is there log files for mod_jk2.so like mod_jk.so
Hello, I have gotten mod_jk2.so working with my apache2 and tomcat 4 With the mod_jk I had some directives in my httpd.conf JkLogFile /usr2/wwwlogs/mod_jk_4.log JkLogLevelerror It appears that I need to put directives in my worker2.properties For the life of me I can not find anywhere that list the directives for the worker2.properties The other question I have is there does not appear to be a setting in the httpd.conf for the location of the worker2.properties. From what I can tell the mod_jk2.so looks in the MYAPACHE_DIR/conf directory for this file. Can this be configured? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CoyoteConnector startup errors
hello I have rh9, apache 2.0.49 , tomcat 4.1.30 and j2 connector, jk2-2.0.4 this is a brand new install. I appears to be working but i am getting errors when it starts CoyoteConnector Coyote can't register jmx for protocol Can someone tell me how to debug / fix this Thanks randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building jk2-2.0.4 on rh9 having some problems
Hello I am building jk2-2.0.4 on rh9 and apache 2 I first configure ./configure --with-apxs2=/usr/sbin/apxs --with-java-home=${JAVA_HOME} --with-java-platform=2 --enable-jni Make (no errors) cd ../build/jk2/apache2 When I do this I ge the following error apxs -n jk2 -i mod_jk2.so /usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/httpd/build/libtool' mod_jk2.so /usr/lib/httpd/modules /usr/lib/httpd/build/libtool --mode=install cp mod_jk2.so /usr/lib/httpd/modules/ cp mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so mv: cannot move `/usr/lib/httpd/modules/' to a subdirectory of itself, `/usr/lib/httpd/modules/mod_jk2.so.so' chmod 755 /usr/lib/httpd/modules/mod_jk2.so chmod: failed to get attributes of `/usr/lib/httpd/modules/mod_jk2.so': No such file or directory apxs:Error: Command failed with rc=65536 So I manually do the command cp mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so But now when I try to start httpd I get the error: Cannot load /etc/httpd/modules/mod_jk2.so into server: /etc/httpd/modules/mod_jk2.so: cannot open shared object file: No such file or directory Thanks for anyhelp randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Building jk2-2.0.4 on rh9 having some problems
Actually ls -ls /etc/httpd/ total 12 0 lrwxrwxrwx1 root root 25 Mar 23 16:13 build - ../../usr/lib/httpd/build 4 drwxr-xr-x7 root root 4096 Apr 5 10:20 conf 4 drwxr-xr-x2 root root 4096 Apr 1 10:22 conf.d 4 drwxr-xr-x2 apache apache 4096 Mar 23 11:14 local 0 lrwxrwxrwx1 root root 19 Mar 22 08:36 logs - ../../var/log/httpd 0 lrwxrwxrwx1 root root 27 Mar 22 08:36 modules - ../../usr/lib/httpd/modules 0 lrwxrwxrwx1 root root 13 Mar 22 08:36 run - ../../var/run Apache should be able to traverse a SYM link shouldn't it? RP -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 10:50 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Your running into pathing problems. Your using /usr/lib/httpd/modules and /etc/httpd/modules. apache wants to use /etc/httpd/modules. Copy your mod_jk2.so there. Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:46 AM To: 'Tomcat Users List' Subject: Building jk2-2.0.4 on rh9 having some problems Hello I am building jk2-2.0.4 on rh9 and apache 2 I first configure ./configure --with-apxs2=/usr/sbin/apxs --with-java-home=${JAVA_HOME} --with-java-platform=2 --enable-jni Make (no errors) cd ../build/jk2/apache2 When I do this I ge the following error apxs -n jk2 -i mod_jk2.so /usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/httpd/build/libtool' mod_jk2.so /usr/lib/httpd/modules /usr/lib/httpd/build/libtool --mode=install cp mod_jk2.so /usr/lib/httpd/modules/ cp mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so mv: cannot move `/usr/lib/httpd/modules/' to a subdirectory of itself, `/usr/lib/httpd/modules/mod_jk2.so.so' chmod 755 /usr/lib/httpd/modules/mod_jk2.so chmod: failed to get attributes of `/usr/lib/httpd/modules/mod_jk2.so': No such file or directory apxs:Error: Command failed with rc=65536 So I manually do the command cp mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so But now when I try to start httpd I get the error: Cannot load /etc/httpd/modules/mod_jk2.so into server: /etc/httpd/modules/mod_jk2.so: cannot open shared object file: No such file or directory Thanks for anyhelp randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Building jk2-2.0.4 on rh9 having some problems
Yes mod_jk2.so exists Thanks for your help -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:22 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Should. I guess let's start at the beginning...Does the module exist in /etc/httpd/modules? -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:58 AM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Actually ls -ls /etc/httpd/ total 12 0 lrwxrwxrwx1 root root 25 Mar 23 16:13 build - ../../usr/lib/httpd/build 4 drwxr-xr-x7 root root 4096 Apr 5 10:20 conf 4 drwxr-xr-x2 root root 4096 Apr 1 10:22 conf.d 4 drwxr-xr-x2 apache apache 4096 Mar 23 11:14 local 0 lrwxrwxrwx1 root root 19 Mar 22 08:36 logs - ../../var/log/httpd 0 lrwxrwxrwx1 root root 27 Mar 22 08:36 modules - ../../usr/lib/httpd/modules 0 lrwxrwxrwx1 root root 13 Mar 22 08:36 run - ../../var/run Apache should be able to traverse a SYM link shouldn't it? RP -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 10:50 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Your running into pathing problems. Your using /usr/lib/httpd/modules and /etc/httpd/modules. apache wants to use /etc/httpd/modules. Copy your mod_jk2.so there. Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:46 AM To: 'Tomcat Users List' Subject: Building jk2-2.0.4 on rh9 having some problems Hello I am building jk2-2.0.4 on rh9 and apache 2 I first configure ./configure --with-apxs2=/usr/sbin/apxs --with-java-home=${JAVA_HOME} --with-java-platform=2 --enable-jni Make (no errors) cd ../build/jk2/apache2 When I do this I ge the following error apxs -n jk2 -i mod_jk2.so /usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/httpd/build/libtool' mod_jk2.so /usr/lib/httpd/modules /usr/lib/httpd/build/libtool --mode=install cp mod_jk2.so /usr/lib/httpd/modules/ cp mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so mv: cannot move `/usr/lib/httpd/modules/' to a subdirectory of itself, `/usr/lib/httpd/modules/mod_jk2.so.so' chmod 755 /usr/lib/httpd/modules/mod_jk2.so chmod: failed to get attributes of `/usr/lib/httpd/modules/mod_jk2.so': No such file or directory apxs:Error: Command failed with rc=65536 So I manually do the command cp mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so But now when I try to start httpd I get the error: Cannot load /etc/httpd/modules/mod_jk2.so into server: /etc/httpd/modules/mod_jk2.so: cannot open shared object file: No such file or directory Thanks for anyhelp randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Building jk2-2.0.4 on rh9 having some problems
I have mod_perl and apache loads it fine. Thanks Rp -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:26 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ok. Do you have any other modules in there and is apache loading them? -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 12:25 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Yes mod_jk2.so exists Thanks for your help -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:22 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Should. I guess let's start at the beginning...Does the module exist in /etc/httpd/modules? -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:58 AM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Actually ls -ls /etc/httpd/ total 12 0 lrwxrwxrwx1 root root 25 Mar 23 16:13 build - ../../usr/lib/httpd/build 4 drwxr-xr-x7 root root 4096 Apr 5 10:20 conf 4 drwxr-xr-x2 root root 4096 Apr 1 10:22 conf.d 4 drwxr-xr-x2 apache apache 4096 Mar 23 11:14 local 0 lrwxrwxrwx1 root root 19 Mar 22 08:36 logs - ../../var/log/httpd 0 lrwxrwxrwx1 root root 27 Mar 22 08:36 modules - ../../usr/lib/httpd/modules 0 lrwxrwxrwx1 root root 13 Mar 22 08:36 run - ../../var/run Apache should be able to traverse a SYM link shouldn't it? RP -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 10:50 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Your running into pathing problems. Your using /usr/lib/httpd/modules and /etc/httpd/modules. apache wants to use /etc/httpd/modules. Copy your mod_jk2.so there. Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:46 AM To: 'Tomcat Users List' Subject: Building jk2-2.0.4 on rh9 having some problems Hello I am building jk2-2.0.4 on rh9 and apache 2 I first configure ./configure --with-apxs2=/usr/sbin/apxs --with-java-home=${JAVA_HOME} --with-java-platform=2 --enable-jni Make (no errors) cd ../build/jk2/apache2 When I do this I ge the following error apxs -n jk2 -i mod_jk2.so /usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/httpd/build/libtool' mod_jk2.so /usr/lib/httpd/modules /usr/lib/httpd/build/libtool --mode=install cp mod_jk2.so /usr/lib/httpd/modules/ cp mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so mv: cannot move `/usr/lib/httpd/modules/' to a subdirectory of itself, `/usr/lib/httpd/modules/mod_jk2.so.so' chmod 755 /usr/lib/httpd/modules/mod_jk2.so chmod: failed to get attributes of `/usr/lib/httpd/modules/mod_jk2.so': No such file or directory apxs:Error: Command failed with rc=65536 So I manually do the command cp mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so But now when I try to start httpd I get the error: Cannot load /etc/httpd/modules/mod_jk2.so into server: /etc/httpd/modules/mod_jk2.so: cannot open shared object file: No such file or directory Thanks for anyhelp randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Building jk2-2.0.4 on rh9 having some problems
Thanks for you help file /usr/lib/httpd/modules/mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped The load module is correct Still get Cannot load /etc/httpd/modules/mod_jk2.so into server: /etc/httpd/modules/mod_jk2.so: undefined symbol: apr_socket_send -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 3:20 PM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ok. If you type file mod_jk2.so what does it tell you? It should say something like: mod_jk2.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped Next, Check your LoadModules statement carefully. Make sure it says what you think it says. It should say something like: LoadModule jk2_module modules/mod_jk2.so Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 4:12 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems I have mod_perl and apache loads it fine. Thanks Rp -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:26 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Ok. Do you have any other modules in there and is apache loading them? -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 12:25 PM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Yes mod_jk2.so exists Thanks for your help -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:22 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Should. I guess let's start at the beginning...Does the module exist in /etc/httpd/modules? -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:58 AM To: 'Tomcat Users List' Subject: RE: Building jk2-2.0.4 on rh9 having some problems Actually ls -ls /etc/httpd/ total 12 0 lrwxrwxrwx1 root root 25 Mar 23 16:13 build - ../../usr/lib/httpd/build 4 drwxr-xr-x7 root root 4096 Apr 5 10:20 conf 4 drwxr-xr-x2 root root 4096 Apr 1 10:22 conf.d 4 drwxr-xr-x2 apache apache 4096 Mar 23 11:14 local 0 lrwxrwxrwx1 root root 19 Mar 22 08:36 logs - ../../var/log/httpd 0 lrwxrwxrwx1 root root 27 Mar 22 08:36 modules - ../../usr/lib/httpd/modules 0 lrwxrwxrwx1 root root 13 Mar 22 08:36 run - ../../var/run Apache should be able to traverse a SYM link shouldn't it? RP -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 10:50 AM To: Tomcat Users List Subject: RE: Building jk2-2.0.4 on rh9 having some problems Your running into pathing problems. Your using /usr/lib/httpd/modules and /etc/httpd/modules. apache wants to use /etc/httpd/modules. Copy your mod_jk2.so there. Drew -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, April 05, 2004 11:46 AM To: 'Tomcat Users List' Subject: Building jk2-2.0.4 on rh9 having some problems Hello I am building jk2-2.0.4 on rh9 and apache 2 I first configure ./configure --with-apxs2=/usr/sbin/apxs --with-java-home=${JAVA_HOME} --with-java-platform=2 --enable-jni Make (no errors) cd ../build/jk2/apache2 When I do this I ge the following error apxs -n jk2 -i mod_jk2.so /usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/httpd/build/libtool' mod_jk2.so /usr/lib/httpd/modules /usr/lib/httpd/build/libtool --mode=install cp mod_jk2.so /usr/lib/httpd/modules/ cp mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so mv: cannot move `/usr/lib/httpd/modules/' to a subdirectory of itself, `/usr/lib/httpd/modules/mod_jk2.so.so' chmod 755 /usr/lib/httpd/modules/mod_jk2.so chmod: failed to get attributes of `/usr/lib/httpd/modules/mod_jk2.so': No such file or directory apxs:Error: Command failed with rc=65536 So I manually do the command cp mod_jk2.so /usr/lib/httpd/modules/mod_jk2.so But now when I try to start httpd I get the error: Cannot load /etc/httpd/modules/mod_jk2.so into server: /etc/httpd/modules/mod_jk2.so: cannot open shared object file: No such file or directory Thanks for anyhelp randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
A couple of performance related questions
Hello, I have a couple of performance questions. BTW, yesterday someone sent out to the list a chart of times for connectors. I accidentally deleted it and can not find it on the archive. Could someone that still has that please email it to me directly? I am using rh9, tomcat 4, apache 2 1) Is there any advantages/disadvantage to using mod_jk2 instead of mod_jk? 2) has anyone used Jikes and seen a noticeable difference? 3) setting -Xmx ,-Xss. (what is the default? I noticed in the catalina.sh, there is no -Xmx ,-Xss) I am moving from one prod box rh7.3 in 7.3 it show each thread individually. Any idea how to tell how much memory my tomcat is using? Currently I have 120 threads. But each thread looks like this(I am pretty sure) Ie from top 4012 apache 9 0 92160 65M 2412 S 0.3 6.4 0:15 java Thanks for any help and answers to any of these questions. randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tuning
Hello I am looking for docs/howto on tuning I am setting up some new boxes with rh9, tomcat 4 and apache 2 Any heads up from experience would help as well I am move the code from a rh7, tomcat 4 and apache 1.3 Thanks Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting all these errors in my mod_jk_4.log
hello i have an apache 2.0 and tomcat 4.1.30 and i compiled the mod_jk on my box i have three virtual hosts only one has the (directives) JkMount /*.jsp worker1 JkMount /servlet/* worker1 everytime one of the other sites gets access i get the following entry in the mod_jk.log file [Thu Apr 01 12:02:13 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/ldirectordping.html' [Thu Apr 01 12:02:13 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match thanks for anyhelp Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting all these errors in my mod_jk_4.log
Yes you are right. It is for my lvs setup. I have ldirectord ping it every 10 seconds. Each time it pings(actually it pings once on 80 and once on 443) The part I am confused with is, I set up a local ip virtual host just for pinging. And the virtual host does not even have the JkMount directives( I tried it with as well just to see) This is what I get every 10 seconds = [Thu Apr 01 13:24:46 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Apr 01 13:24:46 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/ldirectordping.html' [Thu Apr 01 13:24:46 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu Apr 01 13:24:46 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Apr 01 13:24:46 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/ldirectordping.html' [Thu Apr 01 13:24:46 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu Apr 01 13:24:46 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Apr 01 13:24:46 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/ldirectordping.html' [Thu Apr 01 13:24:46 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu Apr 01 13:24:46 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Apr 01 13:24:46 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/ldirectordping.html' [Thu Apr 01 13:24:46 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match -[Thu Apr 01 13:24:56 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Apr 01 13:24:56 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/ldirectordping.html' [Thu Apr 01 13:24:56 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu Apr 01 13:24:56 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Apr 01 13:24:56 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/ldirectordping.html' [Thu Apr 01 13:24:56 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu Apr 01 13:24:56 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Apr 01 13:24:56 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/ldirectordping.html' [Thu Apr 01 13:24:56 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu Apr 01 13:24:56 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Apr 01 13:24:56 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/ldirectordping.html' [Thu Apr 01 13:24:56 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match --[Thu Apr 01 13:25:06 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Apr 01 13:25:06 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/ldirectordping.html' [Thu Apr 01 13:25:06 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu Apr 01 13:25:06 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Apr 01 13:25:06 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/ldirectordping.html' [Thu Apr 01 13:25:06 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu Apr 01 13:25:06 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Apr 01 13:25:06 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/ldirectordping.html' [Thu Apr 01 13:25:06 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Thu Apr 01 13:25:06 2004] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Apr 01 13:25:06 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/ldirectordping.html' [Thu Apr 01 13:25:06 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 1:07 PM To: Tomcat Users List Subject: Re: Getting all these errors in my mod_jk_4.log On Thu, Apr 01, 2004 at 12:46:29PM -0600, Randy Paries wrote: : everytime one of the other sites gets access i get the following entry in : the mod_jk.log file : [Thu Apr 01 12:02:13 2004] [jk_uri_worker_map.c (500)]: Attempting to map : URI '/ldirectordping.html' : [Thu Apr 01 12:02:13 2004] [jk_uri_worker_map.c (618
RE: Getting all these errors in my mod_jk_4.log
Ok, Just call me stupid JkLogLeveldebug DUH!!! -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 1:07 PM To: Tomcat Users List Subject: Re: Getting all these errors in my mod_jk_4.log On Thu, Apr 01, 2004 at 12:46:29PM -0600, Randy Paries wrote: : everytime one of the other sites gets access i get the following entry in : the mod_jk.log file : [Thu Apr 01 12:02:13 2004] [jk_uri_worker_map.c (500)]: Attempting to map : URI '/ldirectordping.html' : [Thu Apr 01 12:02:13 2004] [jk_uri_worker_map.c (618)]: : jk_uri_worker_map_t::map_uri_to_worker, done without a match Does this happen literally /every/ time, or just every so often? IIRC the requested URI is related to Linux Virtual Server (LVS), to confirm whether a given host is up and running (and failover to a secondary if it's not). -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.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: apache 1.3 tomcat 5.0.19
Galem, Mod_jk and mod_jk2 are connectors between tomcat and a standard webserver(apache, etc.). If you are going to use tomcat as a stanalone sever you don't need to connect to apache. Short answer = no. Randy Harrison Developer, eWatch Services PR Newswire 612 243-0601 x1120 [EMAIL PROTECTED] Galam [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: RE: apache 1.3 tomcat 5.0.19 03/17/2004 04:59 PM Please respond to Tomcat Users List Shapira, I have a question! If I use Tomcat5 standalone in production, do I still need to configure the mod_jk ? The mod_jk has been giving me too much troubles, and it would be really great if it is not needed in standalone enviroment. Thanks! Galam. Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Tomcat 5 can be used standalone to serve static content including images, yes. The same is true for tomcat 3 and 4 as well. People are using tomcat in production without a front-end server to handle static content, yes. Is there a drop in performance? Probably yes, but it depends on the static content, the traffic your site gets, the hardware and software configuration, and a host of other variables: frequently the drop in performance is better than the additional maintenance and setup costs of a separate front-end. Yoav Shapira Millennium Research Informatics -Original Message- From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 2:16 PM To: Tomcat Users List Subject: Re: apache 1.3 tomcat 5.0.19 I have a complementary question, taht I know that i have being asked before, but didn't find any answer, it's related to my previous question: - Tomcat 5 can be used directly (in production) without apache??? For serving static pages and images??? I mean, there are anybody using it direct in production, without any drop in performance? Emerson Cargnin wrote: Hi all I'm migrating a tomcat 3.2.3 isntallation to version 5. When using 3.2.3, I used to use automatic mod_jk.conf-auto generation for use by apache. Does version 5 has the same feature? Or do I have to configure it by hand?? any how-to?? It's not mentioned in tomcat 5 docs.. I used mod_jk, is jk2 prefered There's no linux release for it and when trying to build as the readme says, the buildI doesn't work at all... I'm using suse 9 / apache 1.3 and tomcat 5. -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam
mod_jk2 with multiple tomcats
Hi all, I'm currently using apache2 + mod_jk2 + tomcat 5 with no problems. I'd like to be able to connect to other instances of tomcat, including tomcat 4. Does anyone know of any good documentation regarding this? Thanks! Randy Harrison Edson Alves Pereira [EMAIL PROTECTED]To: 'Tomcat-User List' [EMAIL PROTECTED] ano.com.br cc: Subject: doubts about attributes 03/11/2004 03:05 PM Please respond to Tomcat Users List Hello dudes, i´m trying to set some attributes to a request in my servlet, that´s pretty easy as you know, but after i must use redirect to a JSP page and when i try to recall those attributes created before they doesn´t appear in JSP´s request object. Even thought i set a request´s attribute and use redirect i cannot get it again, can i? Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat5 MBeans/JMX context creation
I am currently experimenting with the Java 1.5 remote JMX/MBeans for use in our build process. In particular, I am attempting to install a new context in a running Tomcat5.18 server using an external Ant task/application, (without using the manager webapp). I found code in the admin webapp to do this, but it does not seem to configure the WebappClassLoader instances associated with the context correctly. By examining the Tomcat5 source, I was able to find a workaround that seems to function correctly, but I would like to verify it with someone who knows how the MBean API is intended to be used. Here is what the admin webapp is doing to install a new context: ObjectName host = ... ; String contextPath = /testsite ; String webappDocBase = /tmp/testsite ; String newContext = (String) mbeanServer.invoke( factory, createStandardContext, new Object [] { host.toString(), /testsite, /tmp/testsite }, new String [] { java.lang.String, java.lang.String, java.lang.String } ) ; mbeanServer.invoke( factory, createWebappLoader, new Object [] { newContext }, new String [] { java.lang.String } ) ; mbeanServer.invoke( factory, createStandardManager, new Object [] { newContext }, new String [] { java.lang.String } ) ; Accessing a JSP page or servlet in this new context results in trying to use an unstarted ClassLoader that results in a ThreadDeath exception. The following MBeans are created, (note the odd Catalina:type=Loader instance): Catalina:type=Loader,path=/testsite,host=localhost Catalina:type=NamingResources,resourcetype=Context,path=/testsite,host=local host Standalone:j2eeType=Servlet,name=CookiesDump,WebModule=//localhost/testsite, J2EEApplication=none,J2EEServer=none Standalone:j2eeType=Servlet,name=default,WebModule=//localhost/testsite,J2EE Application=none,J2EEServer=none Standalone:j2eeType=Servlet,name=jsp,WebModule=//localhost/testsite,J2EEAppl ication=none,J2EEServer=none Standalone:j2eeType=WebModule,name=//localhost/testsite,J2EEApplication=none ,J2EEServer=none Standalone:type=Cache,host=localhost,path=/testsite Standalone:type=Loader,path=/testsite,host=localhost Standalone:type=Manager,path=/testsite,host=localhost If the code above is modified to remove the call to createWebappLoader, the webapp is loaded correctly and the exported MBeans match what is available when the same webapp is loaded if deployed directly in the Tomcat5 webapps directory at startup: Catalina:type=NamingResources,resourcetype=Context,path=/testsite,host=local host Standalone:j2eeType=Servlet,name=CookiesDump,WebModule=//localhost/testsite, J2EEApplication=none,J2EEServer=none Standalone:j2eeType=Servlet,name=default,WebModule=//localhost/testsite,J2EE Application=none,J2EEServer=none Standalone:j2eeType=Servlet,name=jsp,WebModule=//localhost/testsite,J2EEAppl ication=none,J2EEServer=none Standalone:j2eeType=WebModule,name=//localhost/testsite,J2EEApplication=none ,J2EEServer=none Standalone:type=Cache,host=localhost,path=/testsite Standalone:type=Loader,path=/testsite,host=localhost Standalone:type=Manager,path=/testsite,host=localhost It seems that the invocation of the createWebappLoader operation ends up creating an extra Loader instance somehow that confuses the ClassLoader configuration for the webapp context. I verified that the createStandardContext operation does indeed construct a Loader when start() is invoked on the context container. Apparently, either the createStandardContext is not supposed to create the Loader or the createWebappLoader operation should not be used in the admin webapp... then again, I might be missing something! Can anyone clarify how the createStandardContext should be invoked? Randy Watler Finali Corporation
Re: Tomcat5 MBeans/JMX context creation
Remy Maucherat wrote: Randy Watler wrote: I am currently experimenting with the Java 1.5 remote JMX/MBeans for use in our build process. ... Can anyone clarify how the createStandardContext should be invoked? You can look at the JBoss integration code for examples. ... There's additional code, but this is for creating a basic context, and configuring its classloader. The Tomcat code which allows doing this is a lot more recent than the harcoded admin webapp methods, and is more JavaBean like. Remy, Note that I am using the JMX remote Out-of-the-box Java 1.5 Monitoring and Management, so some of the JBoss setup may not apply, (like the ClassLoader configuration that passes object instances). Here is what I am trying: // create context mbeanServer.createMBean( org.apache.commons.modeler.BaseModelMBean, context, new Object [] { org.apache.catalina.core.StandardContext }, new String [] { java.lang.String } ) ; mbeanServer.setAttribute( context, new Attribute( docBase, /tmp/testsite ) ) ; mbeanServer.setAttribute( context, new Attribute( path, /testsite ) ) ; // start context mbeanServer.invoke( context, start, null, null ) ; Unfortunately, the createMBean call above throws the following exception: javax.management.ReflectionException: The MBean class could not be loaded by the default loader repository at com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClassWithDefaultLoaderRepo sitory(MBeanInstantiatorImpl.java:61) at com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.instantiate(MBeanInstantiatorI mpl.java:378) at com.sun.jmx.mbeanserver.JmxMBeanServer.instantiate(JmxMBeanServer.java:1011) at com.sun.jmx.remote.security.MBeanServerAccessController.createMBean(MBeanSer verAccessController.java:167) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl. java:1418) at javax.management.remote.rmi.RMIConnectionImpl.access+100(RMIConnectionImpl.j ava:81) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMICon nectionImpl.java:1301) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConne ctionImpl.java:1395) at javax.management.remote.rmi.RMIConnectionImpl.createMBean(RMIConnectionImpl. java:337) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:494) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) at sun.rmi.transport.Transport+1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7 01) at java.lang.Thread.run(Thread.java:566) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC all.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source) at javax.management.remote.rmi.RMIConnectionImpl_Stub.createMBean(Unknown Source) at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.createM Bean(RMIConnector.java:662) at InstallTask.execute(InstallTask.java:84) ... 1 more Caused by: java.lang.ClassNotFoundException: org.apache.commons.modeler.BaseModelMBean at com.sun.jmx.mbeanserver.ClassLoaderRepositorySupport.loadClass(ClassLoaderRe positorySupport.java:208) at com.sun.jmx.mbeanserver.ClassLoaderRepositorySupport.loadClass(ClassLoaderRe positorySupport.java:128) at com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClassWithDefaultLoaderRepo sitory(MBeanInstantiatorImpl.java:58) at com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.instantiate(MBeanInstantiatorI mpl.java:378) at com.sun.jmx.mbeanserver.JmxMBeanServer.instantiate(JmxMBeanServer.java:1011) at com.sun.jmx.remote.security.MBeanServerAccessController.createMBean(MBeanSer verAccessController.java:167) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl. java:1418) at javax.management.remote.rmi.RMIConnectionImpl.access+100(RMIConnectionImpl.j ava:81) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMICon nectionImpl.java:1301) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConne ctionImpl.java:1395
Help, once again looking for connector binaries
Hello, The box i am building unfortunately does not have apxs I am looking for someone with mod_jk for tomcat 4.0 and apache 2 Thanks for any help Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help, once again looking for connector binaries(this time with the plaform)
crap!!! sorry all Red Hat Linux release 9 (Shrike) I am looking for someone with mod_jk for tomcat 4.0 and apache 2 RP From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 1:48 AM To: Tomcat Users List Subject: Re: Help, once again looking for connector binaries howdy mod_jk is obviously for tomcat and apache 2.. whats ur platform..u need to specify that for a binary... Pavan Kumar Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Randy [EMAIL PROTECTED] 02/05/2004 02:44 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Help, once again looking for connector binaries Hello, The box i am building unfortunately does not have apxs I am looking for someone with mod_jk for tomcat 4.0 and apache 2 Thanks for any help Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NT4ACE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: linux : Limit of file descriptor
Francois: We have not run into a FD limit within the JVM using Tomcat, (only aformentioned user limits that can be modified using ulimit). I too have read of OS/JVM limits surrounding some operations like select() for the NIO package, but these apparently are not limits on Tomcat or Coyote Connector implementations AFAIK. Randy Watler Finali Corporation Francois JEANMOUGIN wrote: Can you post the contents of the following files: /proc/sys/fs/file-max As already mentioned :209713 /proc/sys/fs/file-nr 23321398209713 So. 2332 FDs opened, 1398 used. I found a message talking about a hard coded limit of 1024 in the Jvm... Is it a per thread limit or ?
Re: linux : Limit of file descriptor
Francois, For what it is worth, we run vanilla RedHat 8.0 servers and have to bump up the number handles available to Tomcat using ulimit, (otherwise it is limited to ~1024). We have a complex application that does a lot of proxied access work. Despite that, we have only run out of file descriptors once in several years during what we think was a DOS attack. Remember, each socket gets a file descriptor as well. It seems unlikely that the FDs are being consumed by Tomcat if your log files look normal. Does the number of file handles climb steadily over time or rapidly balloon beyond norms on startup? What build of Linux is on the box in question? Randy Watler Finali Corporation Francois JEANMOUGIN wrote: -Message d'origine- De : Ralph Einfeldt [mailto:[EMAIL PROTECTED] Envoyé : mercredi 22 octobre 2003 15:09 À : Tomcat Users List Objet : RE: linux : Limit of file descriptor Those are shared fd's. Nope, those are real FDs (Otherwise you would have hit the limit much earlier as it is typically something betweenn 1024 and 4096). Nope, on this server, it is 209713. You want some? François. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: linux : Limit of file descriptor
Francois: H. Are you running with a fronting web server, (i.e. Apache, IIS, etc), or Tomcat stand alone? Randy Watler Finali Corporation smime.p7s Description: S/MIME Cryptographic Signature
Re: linux : Limit of file descriptor
Francois, This may be a Red Herring, but I have to wonder if the usage of Posix threads in the RedHat enterprise servers is causing problems somehow? Are your other servers RedHat enterprise boxen or different in other ways? What JVM are you using? Randy Watler Finali Corporation smime.p7s Description: S/MIME Cryptographic Signature
[HOWTO] Tomcat 4.1.27 Standalone Jpackage RPMs
How To Install Tomcat 4.1.27 Standalone using Jpackage RPMs --- The Tomcat Team no longer generates monolithic RPMs for the full or LE version of Tomcat after 4.1.24. Instead, RPMs can be obtained from www.jpackage.org. Jpackage's apparent goal is to generate RPMs for common Java based packages and to standardize the installed directory structure and environment. Because Jpackage manages many RPMs, (at least one for each Java library/tool), there are over 20 RPMs that make up a working Tomcat 4.1 installation. This includes RPMs for the j2sdk and its extensions. As with other RPM managed products, future upgrades to Tomcat may only include one or a handfull of RPMs to be updated. If this sounds daunting or difficult to manage, remember that RPMs make the whole process fairly easy. As mentioned above, Jpackage attempts to unify the Java install environment by repackaging JVMs/JREs into a consistent form that allows multiple versions of Sun, Blackdown, and IBM product RPMs to be plug compatible with other Jpackage components like Tomcat. This eliminates many configuration problems and makes user and service environments generally stable. To realize this goal, some Jpackage RPM installation scripts require that the JVM and related components be installed using Jpackage RPMs; this includes the Tomcat 4.1 RPM. Also, there is also a Jpackage utilities RPM that must be installed to support this install architecture. For many reasons, (see the site FAQ for details), Jpackage cannot distribute binary RPMs for many vendor's products or components. However, Jpackage has created nosrc RPMs that you manually compose, (only once), after pulling the products binary sources from the vendor's web sites. The nosrc designation can be misleading: by building RPMs from these templates, downloaded binary components are not rebuilt from Java or other sources, they are simply repackaged as Jpackage compatible binary RPMs! For a Tomcat 4.1 install, this process must be done for only the JVM and a few of its extensions. Don't let this extra step color your opinion of the Jpackage RPMs! Here are the steps I used to install Tomcat 4.1.27 using the Sun 1.4.2_01 j2sdk on a RedHat 8.0 server, (YMMV): --- 1. Erase any j2sdk and obsolete Tomcat RPM installs. For example, these were the commands I used after saving any Tomcat configuration files or webapps: su - Password: rpm -e j2sdk-1.4.2_01-fcs rpm -e tomcat4-4.1.24-full.2jpp rm -rf /var/tomcat4 rm -rf /etc/tomcat4 exit --- 2. Download the following RPMs from www.jpackage.org: ant-1.5.4-2jpp.noarch.rpm jaf-1.0.2-3jpp.nosrc.rpm jakarta-commons-beanutils-1.6.1-4jpp.noarch.rpm jakarta-commons-collections-2.1-4jpp.noarch.rpm jakarta-commons-daemon-1.0.cvs20030227-6jpp.noarch.rpm jakarta-commons-dbcp-1.0-4jpp.noarch.rpm jakarta-commons-digester-1.5-3jpp.noarch.rpm jakarta-commons-fileupload-1.0-1jpp.noarch.rpm jakarta-commons-logging-1.0.3-4jpp.noarch.rpm jakarta-commons-modeler-1.1-2jpp.noarch.rpm jakarta-commons-pool-1.0.1-5jpp.noarch.rpm java-1.4.2-sun-1.4.2.01-7jpp.nosrc.rpm javamail-1.3.1-1jpp.nosrc.rpm jpackage-utils-1.5.27-1jpp.noarch.rpm jta-1.0.1-0.b.3jpp.nosrc.rpm mx4j-1.1.1-5jpp.noarch.rpm regexp-1.3-1jpp.noarch.rpm servletapi4-4.0.4-3jpp.noarch.rpm tomcat4-4.1.27-2jpp.noarch.rpm tyrex-1.0-3jpp.noarch.rpm xalan-j2-2.5.1-1jpp.noarch.rpm xerces-j2-2.4.0-3jpp.noarch.rpm xml-commons-1.0-0.b2.6jpp.noarch.rpm xml-commons-apis-1.0-0.b2.6jpp.noarch.rpm If you wish to use an older JVM version, choose the nosrc RPM that you wish to use; you may also need to include the following nosrc RPMs for required extensions and libraries depending on the JVM version: jaas-ext-1.0.1-2jpp.nosrc.rpm jdbc-stdext-ext-2.0-12jpp.nosrc.rpm jndi-ext-1.2.1-10jpp.nosrc.rpm jsse-ext-1.0.3.01-5jpp.nosrc.rpm ldapjdk-4.1-5jpp.noarch.rpm oro-2.0.7-1jpp.noarch.rpm --- 3. Download the following binary sources from the Sun j2sdk and appropriate product web sites: j2sdk-1_4_2_01-linux-i586.bin jaf-1_0_2.zip javamail-1_3_1.zip jta-1_0_1B-classes.zip Again, you may also need to download these if you are using older JVM versions: jaas-1_0_01.zip jdbc2_0-stdext.jar jndi-1_2_1.zip jsse-1_0_3_02-do.zip, (or jsse-1_0_3_02-gl.zip) --- 4. Install the require Jpackage utility RPM: su - Password: rpm -U jpackage-utils-1.5.27-1jpp.noarch.rpm exit --- 5. Because we are going to build binary RPMs using the nosrc RPMs and the downloaded binary sources, we need a standard host RPM directory structure. Note that the following RPM building steps should be done in a user directory and not as root on your machine! More details for these steps can be found on the www.jpackage.org web site. Here are the commands to prepare the RPM environment: mkdir ~/rpm mkdir ~/rpm/BUILD mkdir ~/rpm/RPMS mkdir ~/rpm/RPMS/i386 mkdir ~/rpm/RPMS/i586
[HOWTO UPDATE] Tomcat 4.1.27 Standalone Jpackage RPMs
How To Install Tomcat 4.1.27 Standalone using Jpackage RPMs --- The Tomcat Team no longer generates monolithic RPMs for the full or LE version of Tomcat after 4.1.24. Instead, RPMs can be obtained from www.jpackage.org. Jpackage's apparent goal is to generate RPMs for common Java based packages and to standardize the installed directory structure and environment. Because Jpackage manages many RPMs, (at least one for each Java library/tool), there are over 20 RPMs that make up a working Tomcat 4.1 installation. This includes RPMs for the j2sdk and its extensions. As with other RPM managed products, future upgrades to Tomcat may only include one or a handfull of RPMs to be updated. If this sounds daunting or difficult to manage, remember that RPMs make the whole process fairly easy. As mentioned above, Jpackage attempts to unify the Java install environment by repackaging JVMs/JREs into a consistent form that allows multiple versions of Sun, Blackdown, and IBM product RPMs to be plug compatible with other Jpackage components like Tomcat. This eliminates many configuration problems and makes user and service environments generally stable. To realize this goal, some Jpackage RPM installation scripts require that the JVM and related components be installed using Jpackage RPMs; this includes the Tomcat 4.1 RPM. Also, there is also a Jpackage utilities RPM that must be installed to support this install architecture. For many reasons, (see the site FAQ for details), Jpackage cannot distribute binary RPMs for many vendor's products or components. However, Jpackage has created nosrc RPMs that you manually compose, (only once), after pulling the products binary sources from the vendor's web sites. The nosrc designation can be misleading: by building RPMs from these templates, downloaded binary components are not rebuilt from Java or other sources, they are simply repackaged as Jpackage compatible binary RPMs! For a Tomcat 4.1 install, this process must be done for only the JVM and a few of its extensions. Don't let this extra step color your opinion of the Jpackage RPMs! Here are the steps I used to install Tomcat 4.1.27 using the Sun 1.4.2_01 j2sdk on a RedHat 8.0 server, (YMMV): --- 1. Erase any j2sdk and obsolete Tomcat RPM installs. For example, these were the commands I used after saving any Tomcat configuration files or webapps: su - Password: rpm -e j2sdk-1.4.2_01-fcs rpm -e tomcat4-4.1.24-full.2jpp rm -rf /var/tomcat4 rm -rf /etc/tomcat4 rm -rf /var/log/tomcat4 exit --- 2. Download the following RPMs from www.jpackage.org: ant-1.5.4-2jpp.noarch.rpm jaf-1.0.2-3jpp.nosrc.rpm jakarta-commons-beanutils-1.6.1-4jpp.noarch.rpm jakarta-commons-collections-2.1-4jpp.noarch.rpm jakarta-commons-daemon-1.0.cvs20030227-6jpp.noarch.rpm jakarta-commons-dbcp-1.0-4jpp.noarch.rpm jakarta-commons-digester-1.5-3jpp.noarch.rpm jakarta-commons-fileupload-1.0-1jpp.noarch.rpm jakarta-commons-logging-1.0.3-4jpp.noarch.rpm jakarta-commons-modeler-1.1-2jpp.noarch.rpm jakarta-commons-pool-1.0.1-5jpp.noarch.rpm java-1.4.2-sun-1.4.2.01-7jpp.nosrc.rpm javamail-1.3.1-1jpp.nosrc.rpm jpackage-utils-1.5.27-1jpp.noarch.rpm jta-1.0.1-0.b.3jpp.nosrc.rpm mx4j-1.1.1-5jpp.noarch.rpm regexp-1.3-1jpp.noarch.rpm servletapi4-4.0.4-3jpp.noarch.rpm tomcat4-4.1.27-2jpp.noarch.rpm tyrex-1.0-3jpp.noarch.rpm xalan-j2-2.5.1-1jpp.noarch.rpm xerces-j2-2.4.0-3jpp.noarch.rpm xml-commons-1.0-0.b2.6jpp.noarch.rpm xml-commons-apis-1.0-0.b2.6jpp.noarch.rpm If you wish to use an older JVM version, choose the nosrc RPM that you wish to use; you may also need to include the following nosrc RPMs for required extensions and libraries depending on the JVM version: jaas-ext-1.0.1-2jpp.nosrc.rpm jdbc-stdext-ext-2.0-12jpp.nosrc.rpm jndi-ext-1.2.1-10jpp.nosrc.rpm jsse-ext-1.0.3.01-5jpp.nosrc.rpm ldapjdk-4.1-5jpp.noarch.rpm oro-2.0.7-1jpp.noarch.rpm --- 3. Download the following binary sources from the Sun j2sdk and appropriate product web sites: j2sdk-1_4_2_01-linux-i586.bin jaf-1_0_2.zip javamail-1_3_1.zip jta-1_0_1B-classes.zip Again, you may also need to download these if you are using older JVM versions: jaas-1_0_01.zip jdbc2_0-stdext.jar jndi-1_2_1.zip jsse-1_0_3_02-do.zip, (or jsse-1_0_3_02-gl.zip) --- 4. Install the require Jpackage utility RPM: su - Password: rpm -U jpackage-utils-1.5.27-1jpp.noarch.rpm exit --- 5. Because we are going to build binary RPMs using the nosrc RPMs and the downloaded binary sources, we need a standard host RPM directory structure. Note that the following RPM building steps should be done in a user directory and not as root on your machine! More details for these steps can be found on the www.jpackage.org web site. Here are the commands to prepare the RPM environment: mkdir ~/rpm mkdir ~/rpm/BUILD mkdir ~/rpm/RPMS mkdir ~/rpm/RPMS/i386 mkdir
RE: Tomcat RPM's?
Steve, According to Henri Gomez, the Tomcat Team will no longer be providing full or le RPMs. You can now find 4.1.27 RPMs on www.jpackage.org. I am in the middle of evaluating those and plan on publishing a short how to here when I have managed to install the now many RPMS required. Randy Watler Finali Corporation -Original Message- From: Steve Stearns To: [EMAIL PROTECTED] Sent: 10/15/03 2:44 PM Subject: Tomcat RPM's? I've noticed that there's not been an RPM release of Tomcat since the 4.1.24 release. Is the RPM version of tomcat no longer being provided? If it is still being provided, any expectation as to when we'll see a new RPM version? I looked in the mail archives and saw people asking about it, but the only responses I saw were suggesting people just use the tar version instead. I could do that, but having the RPM version would be easier for my setup and I'd rather continue to use that if it will be available. ---Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlets and cookies
Hello i assume this is more of a servlet programming problem that tomcat, but i hope someone has some insight? Please tell me i can do this: 1)i go to a jsp page and if it does not find the exist of a cookie it forwards to a login screen 2) the login screen submits to a servlet, and then set some cookies and then forwards to the original JSP 3) the orig jsp sees those cookies and life is fine. well i can not make the servlet set the cookies so that the forwarding jsp sees those cookies. Cookie cookie1 = new Cookie(USERID,_User.getUname()); cookie1.setMaxAge(-1); cookie1.setPath(/); res.addCookie(cookie1); Cookie cookie2 = new Cookie(USERDIR,_User.getDir()); cookie2.setMaxAge(-1); cookie2.setPath(/); res.addCookie(cookie2); RequestDispatcher disp = getServletConfig().getServletContext().getRequestDispatcher(/my.jsp); disp.include(req,res); my.jsp does not see the cookies. if i just refresh the browser the second time in the cookies are there What the heck am i doing wrong thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
4.1.27 Full RPMs
Our Tomcat production upgrade process has been constructed around the usage of the full RPMs that were formerly generated by Henri Gomez. Unfortunately, the binary distribution for 4.1.27 no longer seems to include the RPMs that were part of 4.1.24. Of course, www.jpackage.org does have a 4.1.27 RPM available, but it does not seem to be a full version. Before I set out to install the jpackage.org RPM set, I am wondering if the lack of a Jakarta-Tomcat RPM binary is permanent or if it simply remains to be done for 4.1.27? Randy Watler Finali Corporation
deperatly looking for mod_jk.so for Apache/2.0.40 jakarta-tomcat-4.0.4
hello, I have spent two days tried t o build the mod_jk.so for Apache/2.0.40 jakarta-tomcat-4.0.4 on redhat 8 if someone has a binary mod_jk.so for this config , i would REALLY REALLY appreciate it Thanks
Re: Tomcat SSL issues and looking for an expert
Any ideas as to when 4.1.28 will be out? Also, on my second question... still looking for an 'expert.' My customer wants someone with experience in using Tomcat in a largescale environment (1-2 million hits per day). There is a possibility of this being short term contract deal. thanks, -Randy -- | Randy Carpenter http://www.rune.net | The Rune Network Wapakoneta, OH - On Thu, 11 Sep 2003, Bill Barker wrote: Date: Thu, 11 Sep 2003 21:20:11 -0700 From: Bill Barker [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Tomcat SSL issues and looking for an expert Without more details, I'm guess the problem with the SSL standalone configuration is the same as http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21763. Fronting Tomcat with Apache avoids the bug above, but as anyone who has been on this list at least a day knows, it comes with its own worm-can ;-). Randy Carpenter [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a customer who is running Tomcat 4.1.27. We have been having a problem when using SSL (running the site on port 443). Periodically the server will stop responding on 443, but not on port 80. Restarting the Tomcat server is required to restore functionality. We are also looking at the possibility of using the standard Apache HTTP server as a front-end, and using tomcat as a JSP backend server. I have been asked to try to find someone, an expert at Tomcat, that could help out my customer in planning their implementation, and possibly figuring out the SSL hanging issue in the meantime. Is there anyone that may be able to help? Specs: Tomcat 4.1.27, Sun JDK 1.4.2, Red Hat Linux 9 thanks, Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat SSL issues and looking for an expert
I have a customer who is running Tomcat 4.1.27. We have been having a problem when using SSL (running the site on port 443). Periodically the server will stop responding on 443, but not on port 80. Restarting the Tomcat server is required to restore functionality. We are also looking at the possibility of using the standard Apache HTTP server as a front-end, and using tomcat as a JSP backend server. I have been asked to try to find someone, an expert at Tomcat, that could help out my customer in planning their implementation, and possibly figuring out the SSL hanging issue in the meantime. Is there anyone that may be able to help? Specs: Tomcat 4.1.27, Sun JDK 1.4.2, Red Hat Linux 9 thanks, Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple Virtual Hosts on 1 instance of Tomcat
How about appbase=E:/Inetpub/wwwroot docbase=www.site1.com ... docbase=www.site2.com Also, in Engine you have defaultHost=localhost, but there is no Host name=localhost ... defined. So I think either leave out the defaultHost, point it to www.site1.com, or define a Host entry with name=localhost. ___ Randy Kerber Data Mining Consultant software development data analysis San Jose, CA -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 11:12 AM To: [EMAIL PROTECTED] Subject: Multiple Virtual Hosts on 1 instance of Tomcat Hello. Thanks for taking the time to read this. First of all, I am assuming that virtual hosts are where you have more than one url pointing to a web server. Each url has it's own data. Not redirection. I have a web server that handles 5 virtual hosts using IIS. I've configured tomcat to work with IIS and serve JSP pages for 1 of the virtual hosts. I used the default server.xml file that came with the installation. So my server.xml file looks like this. Engine name=Standalone defaultHost=localhost debug=0 Host name=www.site1.com debug=0 appBase=webapps unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=psc_log. suffix=.txt timestamp=true/ Context path= docBase=E:/Inetpub/wwwroot/www.site1.com debug=0 reloadable=true / /Host Host name=www.site2.com debug=0 appBase=webapps unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=psc_log. suffix=.txt timestamp=true/ Context path= docBase=E:/Inetpub/wwwroot/www.site2.com debug=0 reloadable=true / /Host /Engine Site1 works. Site 2 doesn't. Any idea what I'm doing wrong? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.18 config for Servlet ...
I can't get Tomcat 4.1.18 to send a form GET to my Servlet. My current guess is that maybe the GET is being handled by the DefaultServlet. I checked my log file after starting Tomcat and then having the error occur. In the log it looks like it maps to my servlet correctly but then it adds default: DefaultServlet.serveResource: Serving resource '/' headers and data. What does this mean? Is it saying that the DefaultServlet is handling these requests instead of my servlet? 2003-03-27 09:48:10 StandardHost[localhost]: Mapping request URI '/SAWSServlet' 2003-03-27 09:48:10 StandardHost[localhost]: Trying the longest context path prefix 2003-03-27 09:48:10 StandardHost[localhost]: Mapped to context '/SAWSServlet' 2003-03-27 09:48:10 default: DefaultServlet.serveResource: Serving resource '/' headers and data 2003-03-27 09:48:10 StandardHost[localhost]: Mapping request URI '/SAWSServlet/' 2003-03-27 09:48:10 StandardHost[localhost]: Trying the longest context path prefix 2003-03-27 09:48:10 StandardHost[localhost]: Mapped to context '/SAWSServlet' 2003-03-27 09:48:10 default: DefaultServlet.serveResource: Serving resource '/' headers and data 2003-03-27 09:48:10 default: DefaultServlet.serveFile: contentType='text/html;charset=UTF-8' I'm really stuck on this one so any help would be greatly appreciated! Thanks very much! Randy Curnutt Solutions Plus, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DEBUG JSP
Not sure what ide you are using, but with intellij by idea you can debug jsp's with tomcat and remote debug It works very well RP -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 8:54 AM To: 'Tomcat Users List' Subject: RE: DEBUG JSP First tell me, do you know remote debugging, that´s the way do do this. After you can create a break point like: stop at teste_jsp:48 Use JAVA_OPTS make Tomcat run in remote debug mode. -- De: João Augusto Charnet[SMTP:[EMAIL PROTECTED]] Responder:Tomcat Users List Enviada: quinta-feira, 20 de fevereiro de 2003 10:49 Para: Tomcat Users List Assunto: Re: DEBUG JSP I understand your concern, and my JSP are not that complicated that need to be put in any kind of Java Beans. But I still want to be able to Debug JSP through Tomcat. Thanks for the tip. John. Barney Hamish wrote: If your JSPs are so complicated that you need a debugger then I would seriously consider cutting out some of your java code and putting it into java beans that you access from your JSPs. It's much better practice to have JSPs that are only responsible for the view. Hamish -Original Message- From: João Augusto Charnet [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 12:35 PM To: Tomcat Users List Subject: DEBUG JSP Hello. I'd like to know if any one has actually been able to configure Tomcat to debug JSP, and not just Servlets or other Java Classes? Everybody that helped so far gives me some intruction but tells me that they have not tested the instructions. I've done everything I've found about this topic. Switched to OJSP (Oracle JSP compiler) and still got nothing. I'd like to know if any one DID configure tomcat and TESTED it to Debug JSP. Thanks a lot... Sincerely, John - 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: [OT] free Database with Transaction (Sorry for the noise)
There are some great installation guides for Oracle on Linux and Solaris found at http://www.dbspecialists.com/ -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 1:47 PM To: Tomcat Users List Subject: Re: [OT] free Database with Transaction (Sorry for the noise) Oracle is expensive to buy, expensive to hire a DBA... and well, in windows the installation is okay, but in linux is a real nightmare... I took almost a week the first time (I wasn't a very experienced linux user too) I'm using postgresql with Java and I'm very satisfied, much more serious than MySQL, just as free and have a good comunity. I heard Hypersonic is very nice, but you shouldn't use it if you get lots of data. You know, it's java... it eats memory :-))) On Tue, 2003-02-18 at 16:45, Jens Skripczynski wrote: Hi, thx for all the replies. I will give Hypersonic a try. (Because native java sounds good, and i do not have the money nor the time to learn oracle (a friend of mine told me an adventure about installing oracle on a windows system 'use that installer, swap cd's, because the default cd won't do the job, ' took him a month)). If Hypersonic does not work, i will try postgres. Thx for all the replies. Ciao Jens Skripczynski -- E-Mail: skripi(at)myrealbox(dot)com Computers are like airconditioners: They stop working properly if you open windows. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Fw: Fight war
Hey guys! Please! I thought this was a series of posts on Java war files. It seems I was mistaken! -Original Message- From: Richard Dunn [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 10:24 AM To: Tomcat Users List Subject: Re: Fw: Fight war On Thursday 13 February 2003 08:32, Vermeulen, Francis wrote: Jonathan, just as you are entitled to your opinion, so are others. I believe that many people think that this potential war is no justified means to solve the (imaginary?) problems that the US have with Saddam. If at all, war should only be the ultimate means of self-defense, remember Pearl Harbour? And although this list is not - I agree - the place or means to do this, I agree with the idea and do not find it necessary to call it crap. Politeness and respect are the basis of our modern society, let's all apply it. Francis Vermeulen Get this CRAP off the list! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RESOLVED: Linux/RPM 4.1.18 dtomcat4 script changes
Resolved this issue by setting the CATALINA_HOME explicitly in tomcat4.conf instead of trying to override this variable for each use of dtomcat4. Probably better practice anyway since the install directory does not really change... this is how it is done in the out-of-the-box install anyway, so the problem was certainly mine. Doh! Randy Watler Finali Corporation rwatler wrote: Just wondering if anyone else is having problems with changes to the RPM dtomcat4 script from 4.1.10 to 4.1.18?
Linux/RPM 4.1.18 dtomcat4 script changes
Just wondering if anyone else is having problems with changes to the RPM dtomcat4 script from 4.1.10 to 4.1.18? We use several methods to launch Tomcat within development, including those that expect to set the CATALINA_HOME environment variable and launch using /usr/bin/dtomcat4. However, this new code in dtomcat4 overwrites the setting, resulting CATALINA_HOME being set relative to the dtomcat4 script itself: # resolve links - $0 may be a softlink PRG=$0 while [ -h $PRG ]; do ls=`ls -ld $PRG` link=`expr $ls : '.*- \(.*\)$'` if expr $link : '.*/.*' /dev/null; then PRG=$link else PRG=`dirname $PRG`/$link fi done # Get standard environment variables PRGDIR=`dirname $PRG` CATALINA_HOME=`cd $PRGDIR/.. ; pwd` if [ -r $CATALINA_HOME/bin/setenv.sh ]; then . $CATALINA_HOME/bin/setenv.sh fi Since this script is located in /usr/bin and Tomcat is installed in /var/tomcat4 by the RPM, it would appear that this code can not find a default correctly and should not have been added. I would expect that the assignment of CATALINA_HOME to take place only if not already set, as in: if [ -z $CATALINA_HOME ] ; then CATALINA_HOME=`cd $PRGDIR/.. ; pwd` fi Have I missed something here? Randy Watler Finali Corporation
RE: Jk2 application questions
Do you mean in the Tomcat docs (concerning the Redhat configuration)? If now, then which website? -Original Message- From: Robert L Sowders [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 5:27 PM To: Tomcat Users List Subject: Re: Jk2 application questions Try this from Umberto. Pay particular attention to the Tomcat and JK2 and Apache2 configs. Even though it was written for RedHat it works for windows too. The concepts are the same. rls Kemp Randy-W18971 [EMAIL PROTECTED] 01/15/2003 05:59 AM Please respond to Tomcat Users List To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc: Subject:Jk2 application questions OK. I have the 2x and 4x versions of Apache and Tomcat, along with the mod_jk2 connector, set up on Solaris and Windows 2000. Here is what I am having problems with. 1. Context path. If I set up an application context path for pdlens in Tomcat, I can go http://localhost:8080/examples and http:/localhost:8080/pdlens. Now I can also get http://localhost/examples but not http://localhost/pdlens. What could be missing? 2. Virtual hosts. If I have a virtual host called www.test.com, I can get www.test.com from Apache, but not www.test.com/pdlens talking to Tomcat. What could be missing here? In both cases, it can't find the desired websites. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Jk2 application questions
OK. I have the 2x and 4x versions of Apache and Tomcat, along with the mod_jk2 connector, set up on Solaris and Windows 2000. Here is what I am having problems with. 1. Context path. If I set up an application context path for pdlens in Tomcat, I can go http://localhost:8080/examples and http:/localhost:8080/pdlens. Now I can also get http://localhost/examples but not http://localhost/pdlens. What could be missing? 2. Virtual hosts. If I have a virtual host called www.test.com, I can get www.test.com from Apache, but not www.test.com/pdlens talking to Tomcat. What could be missing here? In both cases, it can't find the desired websites. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat and JNDI
Hello, I am trying to get tomcat and jndi working. I am just looking for some direction in troubleshooting. I have configured the server.xml and web.xml as given in the examples of the tomcat docs for oracle. In the code I am trying to get working. //snippet// initNamingContext= new InitialContext (); envNamingContext= (Context) initNamingContext.lookup (java:comp/env); envNamingContext.bind (JNDINames.userDataDtdJndiName, userDataDTDName); When it does the envNamingContext.bind it throws and exception (see below) Any help would be greatly appreciated Thanks Randy Paries javax.naming.NamingException: Context is read only at org.apache.naming.NamingContext.checkWritable(NamingContext.java:942) at org.apache.naming.NamingContext.bind(NamingContext.java:870) at org.apache.naming.NamingContext.bind(NamingContext.java:212) at org.apache.naming.NamingContext.bind(NamingContext.java:228) at com.mc.pc.struts.plugins.PrintCenterPlugin.init(PrintCenterPlugin.java:1 10) at org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServ let.java:991) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471) at com.mc.action.MCActionServlet.init(MCActionServlet.java:22) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:918) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3279) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3421 ) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:638) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) DEBUG [01-13-03 12:56:28,750] mc.servlets.MCContextListener.contextInitialized():28 : ServletContext Listener was Called P:\webapp\ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat w/Apache Question
There is a tutorial at http://www.johnturner.com -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: Tomcat w/Apache Question Has anyone successfully configured Tomcat to with with Apache using the AJP connector. I am presently trying to set up the connectors with Apache 1.3.20 and everything was going find until I tried to do the portion for configuring mod_jk.so with the Apache version. I received several errors in reference to a C header file socketvar.h. If someone could provide some insight on what the problem is or information on successful configuring Apache and Tomcat to work together (I am presently using information out of the Wrox Professional Apache Tomcat book). It would be appreciated Thank you Allen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]