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: 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]
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]
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]
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]
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]
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: 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]
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: is this normal??
I have a pretty busy web server It has apache and tomcat What I am trying to find out if I have a problem or not I am linux guy but not at the tuning level When I do a top I get: These top 4 are always at the top 29616 apache25 0 87368 78M 14256 R46.8 7.8 388:13 java 2290 apache25 0 87368 78M 14256 R45.0 7.8 386:14 java 460 apache24 0 6612 5112 4696 R44.2 0.4 357:51 httpd 2180 apache25 0 6656 5176 4696 R39.9 0.5 359:28 httpd What makes me suspicious is that it is only after some time. When I do a sar, I have no idle time on the CPU I realize that this may be a linux or apache question, but I think it has to do with tomcat as well Thanks for any help Randy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: is this normal??
I am running jakarta-tomcat-4.0.4 jdk1.3.1_04 apache-1.3.27-2 I have enabled server stats (thanks Jan) I stop and started and it is back to normal. So when this does this again, I will see if the server status helps Thanks for all the suggestions Randy -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 1:19 PM To: Tomcat Users List Subject: RE: is this normal?? Are you using tomcat 3.x by any chance? We had a CPU problem with 3.2.4 that we could never resolve. The problem went away with our recent upgrade to 4.1.x -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 11:37 AM To: 'Tomcat Users List' Subject: RE: is this normal?? I have a pretty busy web server It has apache and tomcat What I am trying to find out if I have a problem or not I am linux guy but not at the tuning level When I do a top I get: These top 4 are always at the top 29616 apache25 0 87368 78M 14256 R46.8 7.8 388:13 java 2290 apache25 0 87368 78M 14256 R45.0 7.8 386:14 java 460 apache24 0 6612 5112 4696 R44.2 0.4 357:51 httpd 2180 apache25 0 6656 5176 4696 R39.9 0.5 359:28 httpd What makes me suspicious is that it is only after some time. When I do a sar, I have no idle time on the CPU I realize that this may be a linux or apache question, but I think it has to do with tomcat as well Thanks for any help Randy -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Which connector is best to use between apache 1.3 and tc 4.1.17
Hello, I am trying to upgrade to apache apache-1.3.27-2 and jakarta-tomcat-4.1.17 on linux RH7.3 What is the best connector to use. In my current config I am using Ajp13Connector Is this what I should continue to use, or use another? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Which connector is best to use between apache 1.3 and tc 4.1.17
Is there an advantage of moving to JK 2 Connector? Is it faster, or more stable. I am running the ajp1.3 in production and it works fine. Thanks -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 8:19 AM To: 'Tomcat Users List' Subject: RE: Which connector is best to use between apache 1.3 and tc 4.1.17 Up to you. You'll get different responses from different people. You should be OK with JK for awhile, though the connector dev team is focusing their efforts on JK2. If you want to stick with JK, you might want to consider moving to CoyoteConnector on the Tomcat side, that will mean less work for you in the future if you decide to move from JK to JK2, since CoyoteConnector can handle both. John -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 8:45 AM To: 'Tomcat Users List' Subject: Which connector is best to use between apache 1.3 and tc 4.1.17 Hello, I am trying to upgrade to apache apache-1.3.27-2 and jakarta-tomcat-4.1.17 on linux RH7.3 What is the best connector to use. In my current config I am using Ajp13Connector Is this what I should continue to use, or use another? Thanks -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Should not be this hard
Hello, me again This should have been so easy (famous last words) I am upgrading from tomcat jakarta-tomcat-4.0.4 to jakarta-tomcat-4.1.17 4.0.4 was working fine. For some reason I can not find my servlets ARG! In my web.xml I have a load-on-startup/ and in the log file , the servlet Starts ok But if I goto http://bart.mydomain.com:8080/servlet/uServlet I get a 404... Here is some details. I have to be missing something very simple. My static html and jsps work ok when I goto http://bart.mydomain.com:8080/index.html http://bart.mydomain.com:8080/jsp/dirgloblogin.jsp But if I goto http://bart.mydomain.com:8080/servlet/uServlet I get a 404 from the log file I get : 2002-12-19 09:42:13 StandardContext[]: Mapping contextPath='' with requestURI='/servlet/uServlet' and relativeURI='/servlet/uServlet 2002-12-19 09:42:13 StandardContext[]: Trying exact match 2002-12-19 09:42:13 StandardContext[]: Trying prefix match 2002-12-19 09:42:13 StandardContext[]: Trying extension match 2002-12-19 09:42:13 StandardContext[]: Trying default match 2002-12-19 09:42:13 StandardContext[]: Mapped to servlet 'default' with servlet path '/servlet/uServlet' and path info 'null' and update=true 2002-12-19 09:42:13 default: DefaultServlet.serveResource: Serving resource '/servlet/uServlet' headers and data In my server.xml I have Engine name=Standalone defaultHost=localhost debug=9 Host name=localhost debug=0 appBase=/home/unit unpackWARs=true autoDeploy=true Context path= docBase=/home/unit crossContext=true debug=9 reloadable=false /Context #ls -ls /home/unit/WEB-INF/classes total 104 32 -rwxrwxrwx1 apache apache 32734 Dec 18 21:31 bbsServlet.class 4 drwxrwxrwx3 apache apache 4096 Aug 24 22:19 com 36 -rw-rw-r--1 apache apache 33984 Nov 6 15:43 EditjsServlet.class 32 -rwxrwxrwx1 apache apache 31030 Dec 18 21:31 uServlet.class Thanks for any Help!!! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Should not be this hard(why is this a security risk)
That is what I needed ... Thanks all To follow this up, why is this a security risk? Do they want specific mapping for each servlet? Thanks -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 9:54 AM To: 'Tomcat Users List' Subject: RE: Should not be this hard From the release notes Enabling invoker servlet: Starting with Tomcat 4.1.12, the invoker servlet is no longer available by default in all webapp. Enabling it for all webapps is possible by editing $CATALINA_HOME/conf/web.xml to uncomment the /servlet/* servlet-mapping definition. Using the invoker servlet in a production environment is not recommended and is unsupported. -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 8:51 AM To: 'Tomcat Users List' Subject: Should not be this hard Hello, me again This should have been so easy (famous last words) I am upgrading from tomcat jakarta-tomcat-4.0.4 to jakarta-tomcat-4.1.17 4.0.4 was working fine. For some reason I can not find my servlets ARG! In my web.xml I have a load-on-startup/ and in the log file , the servlet Starts ok But if I goto http://bart.mydomain.com:8080/servlet/uServlet I get a 404... Here is some details. I have to be missing something very simple. My static html and jsps work ok when I goto http://bart.mydomain.com:8080/index.html http://bart.mydomain.com:8080/jsp/dirgloblogin.jsp But if I goto http://bart.mydomain.com:8080/servlet/uServlet I get a 404 from the log file I get : 2002-12-19 09:42:13 StandardContext[]: Mapping contextPath='' with requestURI='/servlet/uServlet' and relativeURI='/servlet/uServlet 2002-12-19 09:42:13 StandardContext[]: Trying exact match 2002-12-19 09:42:13 StandardContext[]: Trying prefix match 2002-12-19 09:42:13 StandardContext[]: Trying extension match 2002-12-19 09:42:13 StandardContext[]: Trying default match 2002-12-19 09:42:13 StandardContext[]: Mapped to servlet 'default' with servlet path '/servlet/uServlet' and path info 'null' and update=true 2002-12-19 09:42:13 default: DefaultServlet.serveResource: Serving resource '/servlet/uServlet' headers and data In my server.xml I have Engine name=Standalone defaultHost=localhost debug=9 Host name=localhost debug=0 appBase=/home/unit unpackWARs=true autoDeploy=true Context path= docBase=/home/unit crossContext=true debug=9 reloadable=false /Context #ls -ls /home/unit/WEB-INF/classes total 104 32 -rwxrwxrwx1 apache apache 32734 Dec 18 21:31 bbsServlet.class 4 drwxrwxrwx3 apache apache 4096 Aug 24 22:19 com 36 -rw-rw-r--1 apache apache 33984 Nov 6 15:43 EditjsServlet.class 32 -rwxrwxrwx1 apache apache 31030 Dec 18 21:31 uServlet.class Thanks for any Help!!! -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk leaves connections open?
The one question I have, is does the connections ever close again. I have peak times where I will have 60-80 connections open. But they never close again Randy -Original Message- From: Jason Koeninger [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 12:09 PM To: Tomcat Users List Subject: RE: mod_jk leaves connections open? Someone correct me if I'm wrong, but mod_jk using the ajp13 and later protocols is supposed to leave connections open. One of the reasons behind the change from ajp12 to ajp13 was to get away from opening a connection to Tomcat for every servlet/jsp served by Tomcat. If you're having trouble with lockups at a certain number of connections, you probably need to tune the Tomcat thread pool (server.xml), Apache/IIS, and/or the underlying operating system. Keep in mind that resources can be quickly exhausted when running IIS/Apache + mod_jk + Tomcat + your application + database + etc. all on one machine. Best Regards, Jason Koeninger JJ Computer Consulting http://www.jjcc.com On Wed, 18 Dec 2002 10:11:08 -0800, Tuan H. Le wrote: We are experiencing this open connection issue in our environment. Though, we are using IIS redirector (isapi_redirector2.dll) with Tomcat 4.1.12. Tomcat hang when the current connection at around 250. We have to restart IIS or Tomcat every time this problem occurs to release the connections. Has anyone found a solution to this issue? Thanks, Tuan -Original Message- From: Simon Chatfield [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 9:47 AM To: Tomcat Users List Subject: mod_jk leaves connections open? Hi everyone, I hope mod_jk questions should be directed to this list, I couldn't find any more suitable. I've been using tomcat and versions of mod_jk for a while now with success. I've got a problem with useing mod_jk-2.0.43.so with apache 2.0.43 and everything seems to work OK for a while. Eventually all request get denied and the mod_jk can't appear to get a connection complaining that tomcat is down or on another port. After a restart of apache (not tomcat) everything will start working again. In digging into the problem, I see that there are hundreds of open connections to the mod_jk port 8009 left open and extablished. Can anyone point me in the right direction on how to solve this problem? Thanks! specifics Solaris 8 Java 1.4 Tomcat 4.1.12 (binary form) Apache 2.0.43 (built from source) mod_jk-2.0.43.so (binary form) -Simon -- Simon Chatfield -- 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] -- 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]
Questions about tomcat as ps -ef
Hello, I am running tomcat jakarta-tomcat-4.0.4 and apache apache-1.3.27-2 My question is about all the tomcat processes/threads. It seems they never seem to go a way. I had to increase my maxProcessors=150 , because I was running out of connections between apache and tomcat. It seems that when I do a ps -ef | grep java | wc -l , that after a restart then number starts at my minProcessors count. But during the day the count continues to increase. My question is that the count never decreases. IS this normal? Thanks Randy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Starting tomcat as user apache instead of root
Hello, Currently I am starting tomcat as root. This is not the best thing to say the least Both tomcat and apache have to share files. (Actually I upload files using both) So I need to start tomcat as the user apache So how is this best way to do that? Should I do a su - apache -c $TOMCAT_HOME/bin/startup.sh ? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Starting tomcat as user apache instead of root
Thanks The problem is that they have to both read and write files The weird thing is if I do a su - apache -c $TOMCAT_HOME/bin/startup.sh It does not start But if I do a su - tomcat -c $TOMCAT_HOME/bin/startup.sh Is does. The one diff is that in the etc/passwd file apache:x:48:48:Apache:/var/www:/bin/false tomcat:x:505:48::/home/tomcat:/bin/bash So I assume it can not start because of the shell. So how does apache start. Should I just give apache a shell? Thanks for any help Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 16, 2002 10:33 AM To: Tomcat Users List Cc: 'Tomcat Users List' Subject: Re: Starting tomcat as user apache instead of root That's one way and I've used that method successfully. The other is if the tomcat user simply needs read access to the files (not write access) just create a group that has both users and change the group perms on the directory for example (assumes that web user is apache and tomcat user is tomcat) webgroup::6:apache,tomcat chmod 750 directory chmod 640 file chgrp webgroup directory chgrp webgroup file I'm pretty confident that should work and your tomcat server will be able to read the doc root Hope that helps Jan-Michael - Original Message - From: Randy Paries [EMAIL PROTECTED] Date: Saturday, November 16, 2002 6:08 am Subject: Starting tomcat as user apache instead of root Hello, Currently I am starting tomcat as root. This is not the best thing to say the least Both tomcat and apache have to share files. (Actually I upload files using both) So I need to start tomcat as the user apache So how is this best way to do that? Should I do a su - apache -c $TOMCAT_HOME/bin/startup.sh ? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user- [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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Best practices question
Hello, I was wondering are most people starting tomcat from root, or are they doing it other ways. What is the suggestion for this. How big are the security issues if started by root Would it be ok to start it by user apache? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: How to get Excel directly started using response.setContentType(...) from JSP?
The only problem with using setContentType is a wonderful bug in IE Not sure if it is for excel but we are having the problem with pdf's The work around is to but a dummy name/value in the query string Foo=.pdf RP -Original Message- From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 1:47 PM To: Tomcat Users List Subject: Re: How to get Excel directly started using response.setContentType(...) from JSP? Zsolt -- Guess I'm a bit confused why you wouldn't want to use the setContentType() method in your jsp ... this is how a problem like this is normally solved (and why the method exists in the first place). Regardless, you can also do it by extension on your jsp. Depending on how your project is setup, this may be prohibitively difficult, but you can precompile your jsp and map it (now a servlet) to whatever you want in your web.xml -- map it to result.xls if you'd like. If you (1) aren't precompiling jsps or (2) have a complex proxy environment with webservers, this will be difficult. All the more reason to use setContentType(). Happy trails! justin At 11:57 PM 9/3/2002, you wrote: Hi, I can get Excel directly started from a servlet using two things: 1. response.setContentType(application/vnd.ms-excel); 2. the servlet path ends with result.xls (like /servlet/abc/result.xls?p=1) I can use response.setContentType(...) from JSP too, but I was not able to use a JSP path to end with xls, thus when I start (click on a link) the JSP file, first I'm asked whether I want to open the file directly or just to download. How could I get Excel started without any furher questions like it is possible from a servlet? Zsolt -- 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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.384 / Virus Database: 216 - Release Date: 8/21/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.384 / Virus Database: 216 - Release Date: 8/21/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
trouble moving from jakarta-tomcat-3.2.2 to jakarta-tomcat-4.0.4
Hello, I have 2 boxes running redhat 7.1 they are running apache Apache/1.3 One box converted to tomcat 4 and I can not make the other one work Before i give the gory details, the one that works is running Apache/1.3.14 (bart) the one that does not is running Apache/1.3.12 (homer) both are using the same mod_jk.so binary I really can not update to .14 on homer Here are some other details j2sdkee1.3.1 jdk1.3.1_04 jakarta-tomcat-3.2.2 (works) jakarta-tomcat-4.0.4 (does not) In my httpd.conf LoadModulejk_module modules/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/java/jakarta-tomcat/conf/workers.properties JkLogFile /usr2/wwwlogs/mod_jk.log JkLogLevelinfo These are un commented for tomcat 4. #JkWorkersFile /usr/java/jakarta-tomcat/conf/jk/workers.properties #Include /usr/java/jakarta-tomcat/conf/auto/mod_jk.conf So here is the problem (finally) Everything works ok with TC3.4 When I change the symlink to TC4 it starts ok i can access it ok via 8080 the jsps run on 8080 when i try to go thru apache, i get an immediate apache 500 server error the most frustrating thing is i can not find anything in any log files. ARG!!! Please , any help/hints will be appreciated Randy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error Log
This is an error from a user that bookmarks your site with an IE5 browser. The browser looks by default for favicon.ico in the root directory. /usr/local/apache/htdocs/favicon.ico -Original Message- From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 2:56 PM To: [EMAIL PROTECTED] Subject: Error Log Does any one has any idea what the following errors mean? [Mon Aug 13 12:22:53 2001] [error] [client 204.30.247.252] File does not exist: /usr/local/apache/htdocs/favicon.ico [Mon Aug 13 12:30:47 2001] [error] [client 217.128.68.93] File does not exist: /usr/local/apache/htdocs/default.ida [Mon Aug 13 12:52:13 2001] [error] [client 212.68.231.10] File does not exist: /usr/local/apache/htdocs/default.ida They are displayed at error_log of the apache server. We looked those files up the directory displayed, but they do not exist. What is happening is that after an applicatin at the tomcat server works for 10-12 hours, the web crushes. Folks here started male pattern baldness tying to solve this error. Any help will be highly appreciated.
Is there a way to get the Doc Root
Title: RE: what is this number -2147483646 Hello, This may be more of a JSP or Servlet question, but I am sure someone in this group would know the answer I have an Web application /Myapp and I have a bunch of jsps in an admin directory. I am going to distribute this in a generic war file. So to access my admin index I would do something like http://host/Appname/admin/admin.jsp The problem is I do not know what the end user is going to call the application(Appname). So How do I get the Document root. I can do a path = %= request.getRequestURI() % and do some substring stuff. %= application.getRealPath("") % doesn't give me what I need. I was hoping for an application.getPath("") Thanks for any Suggestions.. Randy -Original Message-From: Raphael Lemaitre [mailto:[EMAIL PROTECTED]]Sent: Thursday, June 21, 2001 10:57 AMTo: '[EMAIL PROTECTED]'Subject: RE: what is this number -2147483646 -2147483646 is Integer.MIN_VALUE With this value, this servlet is loaded first (the less load-on-startup value is, earlier the servlet is loaded) Raphael Lemaitre HI What is the meaning of the foll. code in web.xml file for startup servlets. load-on-startup -2147483646 /load-on-startup can any one know .. Rgds venkatesh
RE: How can I speed up my development process?
Title: tomcat-apache?? why Jserv Module? I improved the speed of jbuilder debug substantially by adding the param -classic to the vm arguments Randy -Original Message-From: Harrison, Robert [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 12, 2001 10:47 AMTo: [EMAIL PROTECTED]Subject: How can I speed up my development process? Currently I am using tomcat, enhydra web server, and JBuilder for development. It is so slow in debug mode. Any advice?
Servlet File upload Oreily MultipartParser problems
Hello, does anyone have the Oreily MultipartParser file upload working with Tomcat and apache on Linux. I have developed this upload servlet using Jbuilder 4 and Win2000. The servlet works with the Jbuilder debugger(tomcat 3.1) and jrun. But is does work when I push it to my production linux box. When I execute the form to upload the image on the linux box, the form just hangs. what is strange is that every time ServletInputStream in = req.getInputStream(); is called I get a Y printed on the console. Do anyone have this working on the linux config? has anyone seen a similar problem? Thanks Randy
RE: Servlet File upload Oreily MultipartParser problems
I found out what it was in jBuilder I was using tomcat but ajp12 in production i was using ajp13 I upgrading the linux box to tomcat 3.2.2 and life is fine again. Thanks -Original Message- From: Peter Davison [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 07, 2001 11:16 AM To: [EMAIL PROTECTED] Subject: Re: Servlet File upload Oreily MultipartParser problems I've got it to work on Linux but only using Tomcat stand-alone, not with apache. If I understand correctly, you are getting the input stream from the request directly - req.getInputStream(). My understanding on how the MultipartParser works is that you instantiate a MultipartParser giving it the request, then iterate through the parts handling the ParamParts one way and the FileParts another. Something like: MultipartParser mp = new MultipartParser(request, ...) Part p = null; while ((p = mp.readNextPart()) != null) { if p is a paramPart ... else if p is a filePart { FilePart fp = (FilePart) p; InputStream is = fp.getInputStream(); } } So each FilePart has it's own inputStream. Not sure what the Ys you are seeing mean, but the above works for me. Regards, Pete. Thus spake Randy Paries [EMAIL PROTECTED] on Sat, 7 Jul 2001 09:11:53 -0500: RP Hello, RP RP does anyone have the Oreily MultipartParser file upload working with Tomcat RP and apache on Linux. RP RP I have developed this upload servlet using Jbuilder 4 and Win2000. The RP servlet works with the Jbuilder debugger(tomcat 3.1) and jrun. But is does RP work when I push it to my production linux box. RP RP When I execute the form to upload the image on the linux box, the form just RP hangs. RP RP what is strange is that every time RP ServletInputStream in = req.getInputStream(); RP is called I get a Y printed on the console. RP RP Do anyone have this working on the linux config? RP RP has anyone seen a similar problem? RP RP Thanks RP RP Randy RP
Trying to add a new app
Hello, I am trying to add a new app to my tomcat/apache. from my server.xml I have Context path= docBase=/home/nationals crossContext=true debug=3 reloadable=true /Context Context path=/n2 docBase=/home/nationals2 crossContext=true debug=3 reloadable=true /Context the top works but the bottom does not. i would assume that I call the first one( i am going thru tomcat right now, will do the apache next) http://www.mynode.com:8080/servlet/gameServlet?method=version (this works) I assumed that I would then do http://www.mynode.com:8080/n2/servlet/gameServlet?method=version (this does not) i get file not found and the tc.log 2001-06-05 05:34:31 - Ctx( /n2 ): 404 R( /n2 + /gameServlet + null) null Suggestions please. Thanks Randy
RE: getting Broken pipe: Broken pipe on console
Hello All, After I start up my TOMCAT and apache I get on the console the following exception. I get these exceptions quite a bit while the servlets/JSP's are being accessed, but I can not reproduce these exceptions on demand. == In the servlet log I get the following sometimes. 2001-04-10 02:11:55 - path="" :java.io.IOException: Broken pipe 2001-04-10 02:11:55 - path="" :WriteMessageToBrowserjava.lang.IllegalStateException: Writer is already being used for this request === java.net.SocketException: Broken pipe: Broken pipe at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at org.apache.tomcat.service.connector.TcpConnector.receiveFully(TcpConnector.j ava:150) at org.apache.tomcat.service.connector.TcpConnector.receive(TcpConnector.java:1 21) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection (Ajp13ConnectionHandler.java:146) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) === Any suggestions on debugging or troubleshooting. Thanks Randy Paries
RE: problems whilst loading servlets for the first time
I have seen that when I don't stop and start apache in the correct order. after I load new servlets class files, I stop httpd stop tomcat start tomcat start httpd I do not see those problems anymore. RP -Original Message- From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 1:20 PM To: [EMAIL PROTECTED] Subject: problems whilst loading servlets for the first time Hello, I'm running tomcat 3.2.1 on a rh 6.2 box, with apache 1.3.x. Servlets run without a single problem EXCEPT on the first couple of times they are run, and I get an internal server error (from apache). After a couple of reloads, everything is fine until the next tomcat restart. Does anyone have a hint to toss at me for such a weird behaviour? Yours, rms -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RequestDispatcher.include vs RequestDispatcher.forward(am I doing this the correct way???)
I will try to be brief, but this will need to explanation. 1) I was going to search the archives , but the search engine is down, so please don't flame to bad. I have jsps, that refer to database objects that have been populated by a servlet and then forwarded to the jsp. Looking at the code below, if a did a forward of the jspURL, it do not know of the UNservlet.consultant session object. If I do the include, the jsp does know about the UNservlet.consultant object. The problem is that this only works with IE. Netscape, displays the html generated in text(like view source) I hope this makes sense. Can someone please Help??? Thanks --snippet HttpSession session = req.getSession(true); session.putValue("UNservlet.consultant", new Consultant() ); RequestDispatcher disp = getServletConfig().getServletContext().getRequestDispatcher(jspURL); //the forward did not include the new session object //disp.forward(req,res); disp.include(req,res); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
redirect to a static page from tomcat to apache
Hello, Is there anyway to do a forward from a servlet in tomcat to a static page that apache only knows. ie. apache knows that /foo is /home/foo. but when the servlet executes and does the following(see snippet below), Tomcat does not know where /foo is mapped to. If I set up a context in server.xml it will work. But then for my app it gets more complicated , because x.html is a frame that calls two cgi programs. And of course tomcat doesn't know about these guys. So what are my options? IS there way to set up a cgi-bin directory under tomcat? Thanks From within a servlet. - String URL = "/foo/x.html"; RequestDispatcher disp = getServletConfig().getServletContext().getRequestDispatcher(jspURL); disp.forward(req,res); - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: redirect to a static page from tomcat to apache
Thats what I thought. but when I call:: RequestDispatcher disp = getServletConfig().getServletContext().getRequestDispatcher(URL); and URL = http://www.mydomain.com/consultant/index.html disp returns a null. I can cut and paste the URL from the error message to the browser and it works ok. Randy -Original Message- From: COLE,GLENN (Non-HP-SantaClara,ex2) [mailto:[EMAIL PROTECTED]] Sent: Monday, January 01, 2001 7:48 PM To: '[EMAIL PROTECTED]' Subject: RE: redirect to a static page from tomcat to apache Hi, Randy -- Offhand, I'd suggest fully-qualifying the URL, e.g., String URL = "http://localhost/foo/x.html"; My recollection (such as it is) is that Tomcat takes /name as relative to the current webapp; I *think* that fully-qualifying the URL will get around this. --Glenn -Original Message----- From: Randy Paries [mailto:[EMAIL PROTECTED]] Sent: Monday, January 01, 2001 4:25 PM To: [EMAIL PROTECTED] Subject: redirect to a static page from tomcat to apache Hello, Is there anyway to do a forward from a servlet in tomcat to a static page that apache only knows. ie. apache knows that /foo is /home/foo. but when the servlet executes and does the following(see snippet below), Tomcat does not know where /foo is mapped to. If I set up a context in server.xml it will work. But then for my app it gets more complicated , because x.html is a frame that calls two cgi programs. And of course tomcat doesn't know about these guys. So what are my options? IS there way to set up a cgi-bin directory under tomcat? Thanks From within a servlet. - String URL = "/foo/x.html"; RequestDispatcher disp = getServletConfig().getServletContext().getRequestDispatcher(jspURL); disp.forward(req,res); - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
a couple of 3.2.1 upgrade questions
Hello, I have a couple questions before I do My upgrade.(linux/apache) from 3.1 to 3.2 1) I noticed in the bin directory there is no linux mod_jk. Can I use the 3.1.1 version? 2) When upgrading from one version to another, do I save files like the server.xml and other config files? Are they compatible? 3) Is there somewhere That I can find doc about updates instead of installs? 4) I have tried search this mailing list archive , but the search tool appears to be broke. Thanks Randy
apache and WebApps and jsp's
I am close, but seem to be missing something. I am running apache with mod_jk i am using JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 I will try to be short in my description. I have a servlet that loads up a class and then redirects it to a JSP. This works fine, but I have to have the servlet in $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes directory and the jsp in the $TOMCAT_HOME/webapps/examples/jsp/unitnet directory I would like to get them under the same directory structure. You would think this should be trivial. I tried to create a directory $TOMCAT_HOME/webapps/ROOT/WEB-INF/jsp it can't find the JSP. so I thought I need to create a new web-application. I followed the doc, and added to the server.xml file Context path="/consultants" docBase="webapps/consultants" defaultSessionTimeOut="30" isWARExpanded="true" isWARValidated="false" isInvokerEnabled="true" isWorkDirPersistent="false" reloadable="true" /Context I also modified the tomcat.policy. I get no errors , but apache does not seem to know how to find. I would really like to get a web-application to work with apache. Can anyone help me. Thier doesn't seem to be any doc on webapps and apache. Or if I can't do that how bout being able to put jsp's in the ROOT/WEB-INF/jsp and have it recognized. PS. is anyone else having problems search the archives? It tries to call http://mikal.org:/vestris/search.html but fails. thanks for any help
RE: Sooo Close, Apache, Tomcat missing one thing
In my server.xml I have 1) Context path="/rptest" docBase="/home/unit/javaapps" crossContext="false" debug="1" reloadable="true" /Context 2) in my httpd.conf I have(among some other stuff( i didn't want to include all of my previous message) JkMount *.jsp ajp13 JkMount /servlet/* ajp13 3) in the directory /home/unit/javaapps i have HelloWorld.class. 4) So here is where I am still confused. To access my servlet in /home/unit/javaapps would the url be?? http://www.mymachine.com/servlet/rptest/HelloHttpServlet 5) I can access the servlet, if I put it in /usr/local/jakarta-tomcat/webapps/ROOT/WEB-INF and my URL is http://www.mymachine.com/servlet/HelloHttpServlet Do I HAVE To put all my java classes ONLY in this directory? Thanks -Original Message- From: Saurabh Shukla [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 25, 2000 12:57 AM To: [EMAIL PROTECTED] Subject: RE: Sooo Close, Apache, Tomcat missing one thing You have to mention document base in server.xml SHuklix -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 25, 2000 9:41 AM To: [EMAIL PROTECTED] Subject: Sooo Close, Apache, Tomcat missing one thing So I am pretty sure it has to do something with the way I have my tomcat configured. The piece that I can't seem to follow thru on is: 1) I understand that the JkMount statements redirect all /.jps's and /servlet to the tomcat server. But how does tomcat know where to look for the file/class . Thanks for any help/ direction Randy Paries
Sooo Close, Apache, Tomcat missing one thing
Hello , I am having a disconnect, And I am hoping someone can help, I have an Apache server and the latest Tomcat. The stand alone works fine and the example servlets and JSP's work. I am having trouble understanding the mapping from apache to Tomcat. In my httpd.conf I have the following: LoadModulejk_module modules/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat/conf/workers.properties JkLogFile /usr2/wwwlogs/mod_jk.log JkLogLevelwarn Alias /java "/home/unit/javaapps" Directory "/home/unit/javaapps" Options Indexes FollowSymLinks /Directory VirtualHost xxx.xxx.xxx.xxx ServerAdmin [EMAIL PROTECTED] ServerName www.somename.com ServerAlias xx.xx.xx.xxx DocumentRoot /home/unit JkMount /java/*.jsp ajp13 JkMount /java/servlet/* ajp13 /VirtualHost So When I put in http://www.somename.com/java/servlet/HelloHttpServlet I get paged not Found. I know it is getting to the Tomcat server, because I get an error on the console: 2000-11-24 10:05:17 - Ctx( ): 404 R( + /java/servlet/HelloHttpServlet + null) null So I am pretty sure it has to do something with the way I have my tomcat configured. The piece that I can't seem to follow thru on is: 1) I understand that the JkMount statements redirect all /.jps's and /servlet to the tomcat server. But how does tomcat know where to look for the file/class . Thanks for any help/ direction Randy Paries
Apache In-process servlet Containers
hello, I have an apache web server that I would like to set up tomcat (In-process servlet containers). I realize In-process is not the most scalable way , but for my application it will work and should be faster. My stand-alone server is working fine. In the doc it mentions the three types, and there is even a separate help doc for Netscape and Ie for In-process servlets. I could not find doc on how to implement for Apache. Can you have In-process servlet containers with apache? Can someone point me to the docs to implement this configuration. Thanks Randy Paries