Re: JSTL c:if statements
Could you post your page source? Also post the web-app dtd declaration in your web.xml file. I suspect either servlet spec version or tag usage is causing your issue. --David rotvang wrote: I have Tomcat version 5.0.28, and I am trying to use the JSTL tags in my webapp. I have placed the 2 required JSTL jar files, standard.jar and jstl.jar into my WEB-INF/lib directory. The bizarre thing is that some of the JSTL standard tags work, and some don't! Even stranger, it doesn't break down by taglib--in other words, half of the core tags work, and half don't. Half of the fmt tags work, and half don't. Most importantly, c:out works just fine, and with the EL, properly. However, none of the selection or conditional tags work: c:if , c:when, and c:choose tags all throw weird, indecypherable Jasper exceptions at JSP compilation time. Why would only some of the c: tags throw exceptions, and not all of the c: tags. Now, to rule out the possibility of syntax errors in my source, I copy/pasted a complete JSP example from Sun's own website, which ostensibly should work. Even with Sun Microsystem's own JSPs, these conditional c: tags throw the weird Jasper exception. I've pasted an excerpt of the stack trace thrown by any occurrence of c:if in any of my JSPages: Jan 12, 2007 12:30:04 AM org.apache.jasper.compiler.Compiler generateClass SEVERE: Error compiling file: /C:/Documents and Settings/HR Systems/Desktop/jaka rta-tomcat-5.0.28/jakarta-tomcat-5.0.28/work/Catalina/localhost/OVWebApp//org/ap ache/jsp\Example1_jsp.java [javac] Compiling 1 source file C:\Documents and Settings\HR Systems\Desktop\jakarta-tomcat-5.0.28\jakarta-tomca t-5.0.28\work\Catalina\localhost\OVWebApp\org\apache\jsp\Example1_jsp.java:152: _jspx_meth_c_out_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext ) in org.apache.jsp.Example1_jsp cannot be applied to (org.apache.taglibs.standa rd.tag.el.core.IfTag,javax.servlet.jsp.PageContext) if (_jspx_meth_c_out_1(_jspx_th_c_if_0, _jspx_page_context)) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat unexpectedly shuts down
I guess I could split them into multiple tomcats... I'm not averse to trying things, but what indication do we have that running multiple .war files in Tomcat is the problem? -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Friday, January 12, 2007 2:30 AM To: Tomcat Users List Subject: Re: Tomcat unexpectedly shuts down On 1/12/07, Brown, Carlton [EMAIL PROTECTED] wrote: Anthill is a third party app intended to store and execute Ant scripts. I mention it only because it's fairly well-known and maybe someone has seen similar problems before. Either way, the only thing running in this tomcat instance is 3 copies of Anthill. So can you split the three copies to three tomcats? * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA624 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using tomcat as client application
Hi all. I seen this thing I need exists for php years ago but not sure is anyone make this with tomcat. I have web application (java jsf+xml) that works fine on tomcat. I also have some significant numebr of users that use client version of this program (java applet+xml) In most of the part this is sthe same code except for the presentation layer. Well , ass you all know, this is pain in the a.. when you have to work parallel on two version plus web version is much better in many ways. What I'm intersting is next thing. Can I pack somehow web application and tomcat and install it on user client pc. (I will create setup.exe and send iton cd like client they use now) So when client click on shortcut on his/her pc (all of them are windows operated) he gets this application started via tomcat. Well there is trick. In order to work with all firewalls dont want to start tomcat as classic webserver but to use it as background application to handle requests and generate pages ... Is there some tomcat solution that can work like this? Danilo Cubrovic
New Tomcat shuts down thread
I have started a new thread concerning my shutdown problems as they were addressed in the previous tomcat shuts down thread. Below is the latest reply to that thread. Is anything flooding my server? I don't think so. That server only houses our MySQL database. Multiple users input data into it using a web interface. The web interface is the reason for the Tomcat set up on this server. I would guess that at any given time there could be a dozen users inputting at the same time but not much more than that. It is possible that it is hanging due to memory usage. The loop issue is interesting. What was the resolution for that? As I stated previously I manually stop and start Tomcat every morning. It is not that big of an inconvenience to do that in general but at the same time I would like to know why it is doing this and resolve it. There is something wrong with the application and fixing it would make things run smoother. Steve --- Andre Prasetya wrote: Hi Steve, Is there anything that flood your server with requests or trigger an infinite loop within the application ? I have similar experiences in 2 scenarios 1. A tomcat died every morning, Then we foundout that its flooded by requests at a certain time and there is a flaw at our design that permits only 1 connection for the flooded application. 2. An application causing the tomcat server to hang, exhausting our cpu resources to 100%, trigerred by Stop command from manager. Even after shutting down the tomcat, the process is still running and we have to manually kill the java thread. Thenwe found out that our application got an infinite loop bug when we force it to close. On 1/12/07, Steve Ingraham [EMAIL PROTECTED] wrote: I have a similar problem. I would be interested to know what is said about this. In our case we have a web based application that calls up a MySQL database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine. Every morning I have to manually stop and restart Tomcat. If I do not do so and let it run, over the course of a day or two, definitely no more than the third day, Tomcat will lock up and the web application will display access errors to the users. I then have to run the shutdown.sh script on Tomcat. Then because the instance will not clear out I have to run ps aux, find the instance of java that is running. I then have to run the kill -9 pid # command and then startup.sh to restart Tomcat. If I do this first thing in the morning Tomcat will function without locking up. If I do not do it first thing in the morning, sometime during that day, or if I am lucky the next day, Tomcat will lockup. If anyone has ideas on what can be done to correct this problem I will be anxious to read any replies. Thanks, Steve -Original Message- From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, January 11, 2007 4:06 PM To: Tomcat Users List Subject: RE: Tomcat unexpectedly shuts down I'd find out what other major processes are running on those two UNIX boxes, as it sounds like something there's clashing terribly, and killing off the Tomcat process. -Original Message- From: Brown, Carlton [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Thursday, January 11, 2007 4:01 PM To: users@tomcat.apache.org Subject: Tomcat unexpectedly shuts down Hello, My Tomcat instance is unexpectedly shutting itself down every 8 to 72 hours. Can someone give me some advice on this? By all appearances this is a graceful shutdown. I do not see any interesting exceptions in the logs (I have looked in catalina.out and the various localhost* files). Perhaps I am looking for the wrong thing. This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10. JSP apps running on the server are about 3 different instances of Anthill 1.8.0.264. Thanks in advance, Carlton * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA623 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --
RE: conecting tomcat 5.5.17 to IIS 6
Has anyone got JK-1.2.20 to work with IIS 6? I went back to version 1.2.15 and it works now but the developers tell me it's not a bug and many people have configured it succesfully with 1.2.20. I'd like to know how to get it to work with 1.2.20 from somebody who has done it? Shawn -Original Message- From: Garner, Shawn [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 9:40 AM To: users@tomcat.apache.org Subject: conecting tomcate 5.5.17 to IIS 6 I'm having troubles getting this to work with - JK-1.2.20. I've followed all the steps on the connector website for IIS and still no luck. I can see the /jsp-examples/ if I do port 8080 with tomcat. I can't see it without the port and I have a workers and uriworkermap file with /jsp-examples/ in it. I don't have a connector log file generated. I don't have anything in the IIS log. When I go to the filter panel it doesn't look like the ISAPI filter was loaded. Can anyone help me? Shawn This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using tomcat as client application
Well Java Web Start is opposite of what I need. It allows you to deploy yours desktop application via web to users. I want to make possible use of my web application (tomcat+java jsf) to some of my users that cant/want use internet. Plus I have limitations of corporate firewalls so I want to use it in some non-server way, and limitations of possible hardware limitations (there are number of users with older computers and little ram) On 1/12/07, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: Danilo Cubrovic wrote: I have web application (java jsf+xml) that works fine on tomcat. I also have some significant numebr of users that use client version of this program (java applet+xml) In most of the part this is sthe same code except for the presentation layer. Well , ass you all know, this is pain in the a.. when you have to work parallel on two version plus web version is much better in many ways. What I'm intersting is next thing. Can I pack somehow web application and tomcat and install it on user client pc. (I will create setup.exe and send iton cd like client they use now) So when client click on shortcut on his/her pc (all of them are windows operated) he gets this application started via tomcat. Well there is trick. In order to work with all firewalls dont want to start tomcat as classic webserver but to use it as background application to handle requests and generate pages ... Is there some tomcat solution that can work like this? I suggest you to try Java Web Start. In short it allows you to run Java applications (swing, desktop applications) directly from the web. It handles upgrading to news versions, firewalls (just http / https), caching jars on client machine, etc. -- Mikolaj Rydzewski [EMAIL PROTECTED] -- Danilo Cubrovic
Re: Tomcat unexpectedly shuts down
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, Steve Ingraham wrote: I have a similar problem. I would be interested to know what is said about this. In our case we have a web based application that calls up a MySQL database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine. Every morning I have to manually stop and restart Tomcat. If I do not do so and let it run, over the course of a day or two, definitely no more than the third day, Tomcat will lock up and the web application will display access errors to the users. This sounds more like a JDBC connection leak to me. What error message to your users get when Tomcat stops responding? Are you able to use shutdown.sh to stop Tomcat, or is a kill -9 necessary? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFp6u39CaO5/Lv0PARAqTZAJ9M0J4V8OD65ia/QT/F5+2VQOFOJwCgsRl+ nueJl9sllUsaLBNvbSUlRPQ= =UVQq -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat unexpectedly shuts down
On 1/12/07, Brown, Carlton [EMAIL PROTECTED] wrote: I guess I could split them into multiple tomcats... I'm not averse to trying things, but what indication do we have that running multiple .war files in Tomcat is the problem? No, but maybe they aren't all that similar, so we can narrow the problem down to one webapp or its specific config. L. -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Friday, January 12, 2007 2:30 AM To: Tomcat Users List Subject: Re: Tomcat unexpectedly shuts down On 1/12/07, Brown, Carlton [EMAIL PROTECTED] wrote: Anthill is a third party app intended to store and execute Ant scripts. I mention it only because it's fairly well-known and maybe someone has seen similar problems before. Either way, the only thing running in this tomcat instance is 3 copies of Anthill. So can you split the three copies to three tomcats? * The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA624 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat unexpectedly shuts down
I can use shutdown.sh but the instance stays open. I then have to run the kill -9 command on the instance to clear it out. Since it has been a while since I have seen the error I cannot quote the exact error message. It states something about not enough components. . .. -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, Steve Ingraham wrote: I have a similar problem. I would be interested to know what is said about this. In our case we have a web based application that calls up a MySQL database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine. Every morning I have to manually stop and restart Tomcat. If I do not do so and let it run, over the course of a day or two, definitely no more than the third day, Tomcat will lock up and the web application will display access errors to the users. This sounds more like a JDBC connection leak to me. What error message to your users get when Tomcat stops responding? Are you able to use shutdown.sh to stop Tomcat, or is a kill -9 necessary? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFp6u39CaO5/Lv0PARAqTZAJ9M0J4V8OD65ia/QT/F5+2VQOFOJwCgsRl+ nueJl9sllUsaLBNvbSUlRPQ= =UVQq -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using tomcat as client application
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Danilo, Danilo Cubrovic wrote: I have web application (java jsf+xml) that works fine on tomcat. Can I pack somehow web application and tomcat and install it on user client pc. This is possible, but probably non-ideal. If your Java applet is pretty good-looking, consider deploying it as a client-side app (that is, unwrap the applet into a full-fledged application). You could take your existing web application and split it up into components: back-end versus presentation. That shouldn't be all that hard assuming that you already have a pretty good separation between your business logic and data access layers versus your presentation layer. Then, for a web deployment, you simply use your business logic + data access layers as the foundation (JAR files?) for your web app. The same can be done for the local deployment. Perhaps this is not the solution you're looking for, but it's definitely one option. Good luck, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFp8Qd9CaO5/Lv0PARAu78AKC59rC3TD4v4ISJZKzEq9h4O36I7wCeO7w1 bMWvdUh5DiH6BFRLWsvZHyI= =Q/Lf -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using tomcat as client application
The probably easiest way for you is to build a mini container-application which contains embedded tomcat with your app. At least I would give it a try. regards Leon On 1/12/07, Danilo Cubrovic [EMAIL PROTECTED] wrote: Hi all. I seen this thing I need exists for php years ago but not sure is anyone make this with tomcat. I have web application (java jsf+xml) that works fine on tomcat. I also have some significant numebr of users that use client version of this program (java applet+xml) In most of the part this is sthe same code except for the presentation layer. Well , ass you all know, this is pain in the a.. when you have to work parallel on two version plus web version is much better in many ways. What I'm intersting is next thing. Can I pack somehow web application and tomcat and install it on user client pc. (I will create setup.exe and send iton cd like client they use now) So when client click on shortcut on his/her pc (all of them are windows operated) he gets this application started via tomcat. Well there is trick. In order to work with all firewalls dont want to start tomcat as classic webserver but to use it as background application to handle requests and generate pages ... Is there some tomcat solution that can work like this? Danilo Cubrovic - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New Tomcat shuts down thread
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, Steve Ingraham wrote: As I stated previously I manually stop and start Tomcat every morning. It is not that big of an inconvenience to do that in general but at the same time I would like to know why it is doing this and resolve it. There is something wrong with the application and fixing it would make things run smoother. You mentioned that your users get an error when whatever happens to Tomcat happens. Can you describe that error? I think you said something like not enough components. Does that appear on a stack trace, or as an error message to the user? I'm wondering if you are running out of database connections. (Although, unless you require a database connection to shut down the server, it wouldn't explain the fact that you have to kill -9 the server). The infinite loop suggestion has a better chance of explaining /that/. Can you wait for the server to get all messed up and take more careful notes? That's probably the best next step to take. Check out CPU usage (just run 'top' and see how much CPU time the java process is taking). If the CPU isn't being eaten by java, then it's probably not a code out of control problem. Check all your log files: catalina.out, localhost_*.log, [appname]_*.log, and any application-specific logs you may have (such as log4j.log). These can usually be found in the TOMCAT_HOME/logs directory. Certainly post a stack trace if you get one in any of those log files. Another thing you can to is trigger a thread dump. From that, it's (sometimes) possible to see that all the request handler threads are stuck waiting on some resource. Send a QUIT (sig 3) to the application instead of KILL (sig 9) and that should emit a thread dump (stack trace for every live thread) to standard output (usually redirected to catalina.out). You can inspect it yourself to see if you can detect anything fishy, or go ahead and post it to the list and we'll see if we can give you any advice. The fact that a previous developer mentioned off-hand that something might be wrong with the memory is not exactly encouraging, since I'm guessing he or she didn't give you any indication of /where/ that memory problem might be. That pretty much means that you're going to have to start from scratch. :( Good luck, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFp8ZH9CaO5/Lv0PARAjzCAJ43KFJuG6bza+zLGIAKygFJ97yAqACgw11n bRAlQBGHIn6WlDZN0nzYyQg= =T4kv -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using tomcat as client application
Well I already use your soultion. I have same jar file I use on web server and on that client application. Client application is in frames. Left frame is java applet that represents search engine. In right frame I show search results and a lot of html data that user search for (some legal stuff) So this is combination of java applet +javascript neded for interframe communication + ... It seems to me a little dirty so I like to clean that little bit. I have total separation of applicaion logic and presentation. (3 layers) Well I start to transfer all of that into full page applet application but this is tricky because of poor supoort for html +css data and all of our data is in that format plus Presentation is often change to reflect some new stuff and it is annoying to change and test on two different places. Embeeded tomcat seems intersting solution. I will make an applet that load tomcat and then redirect to start page and let tomcat hadle from that point. But Im not sure how that will work?! And more important in that way tomcat have to listen on some port and that can be huge problem for me with all the coroprate firewalls and unprivileged users. If i can use tomcat embedded to parse url and generate html without acting as server that would be ideal, but can I achieve something like that, or as close as I can. Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Danilo, Danilo Cubrovic wrote: I have web application (java jsf+xml) that works fine on tomcat. Can I pack somehow web application and tomcat and install it on user client pc. This is possible, but probably non-ideal. If your Java applet is pretty good-looking, consider deploying it as a client-side app (that is, unwrap the applet into a full-fledged application). You could take your existing web application and split it up into components: back-end versus presentation. That shouldn't be all that hard assuming that you already have a pretty good separation between your business logic and data access layers versus your presentation layer. Then, for a web deployment, you simply use your business logic + data access layers as the foundation (JAR files?) for your web app. The same can be done for the local deployment. Perhaps this is not the solution you're looking for, but it's definitely one option. Good luck, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFp8Qd9CaO5/Lv0PARAu78AKC59rC3TD4v4ISJZKzEq9h4O36I7wCeO7w1 bMWvdUh5DiH6BFRLWsvZHyI= =Q/Lf -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk - WARNING: processCallbacks status 2 - fixed
walt wrote: Hi, I'm having a problem with Apache,Tomcat, and mod_jk. Apache - 1.3.33 Tomcat - 5.5.12 mod_jk - 1.2.20 We have a jsp web page which calls a servlet to load images. The servlet gets the image by connecting to a java application running on a seperate file server. Every now and then we get the error at the end of this email. Using some stats from the this morning, the jsp page was called 263 times and the servlet 490 times in 38 minutes. Out of the 490 times the servlet was called, 10 of those generated errors. We have been unable to reproduce this error on our test dev systems. On our dev and test systems, we were able to call the jsp page 184 times and the servlet 500 times in a little over a minute and did not get any errors. Everything had been working fine on our old production server for 2+ years which used the same apache version but Tomcat 3.2.3 and JDK1.2.2 . The old production system also used the AJP12 connection protocol where the new system uses the AJP 1.3 connection protocol. Here's some info from the conf files. All load balancing stuff in workers.properties is commented out. Thanks ! walt server.xml Connector port=8009 enableLookups=false protocol=AJP/1.3 / workers.properties worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 Jan 10, 2007 8:54:33 AM org.apache.jk.core.MsgContext action WARNING: Error sending end packet java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:508) at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112) at org.apache.jk.core.MsgContext.action(MsgContext.java:293) at org.apache.coyote.Response.action(Response.java:182) at org.apache.coyote.Response.finish(Response.java:304) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:204) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:744) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:674) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Jan 10, 2007 8:54:33 AM org.apache.jk.common.ChannelSocket processConnection WARNING: processCallbacks status 2 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I hope this helps somebody - The code in question also talks to a remote c++ app on another server. The socket errors were coming from that communication when readln() was called on the socket. We have readln() in a wrapper function and adding Thread.sleep(10); before the actual readln() call on the socket stops the error. walt - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with backlog (AJP 1.3)
Hi, Tracking down one problem I tried to get 503 error by reduction number of parallel connections to Tomcat (Apache - mod_jk - (JBoss) - Tomcat) to 10 (MaxThreads) and backlog to 1 (also tried with 10). Regarding to documentation for backlog: Any requests received when the queue is full will be refused. Unfortunately I wasn't able to get that effect (connection waits until served) using prepared action which waits for several seconds. Is is possible to get 503 in described circumstances? I use JBoss 4.0.3SP1 with Tomcat 5.5 and Apache 2.2.3 with mod_jk 1.2.20. Fedora Core 6. Thanks for help Marcin - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 Clustering with StaticMembers
I'm trying to cluster two Tomcat 6.0.7 instances across a network that does not support multicasting. I've added the StaticMember elements under the StaticMembershipInterceptor. I've also opened up ports 4000 and 51077. When I use netstat to see which ports Tomcat is listening on, it does not show port 51077 like I would have expected. Does someone have an idea what I configured incorrectly? I've include the Cluster section from my $tomcat/conf/server.xml, which is identical on both machines. Thanks in advance! - Mike Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster channelSendOptions=8 Manager className=org.apache.catalina.ha.session.DeltaManager expireSessionsOnShutdown=false notifyListenersOnReplication=true/ Channel className=org.apache.catalina.tribes.group.GroupChannel Membership className=org.apache.catalina.tribes.membership.McastService address=228.0.0.4 port=45564 frequency=500 dropTime=3000/ Receiver className=org.apache.catalina.tribes.transport.nio.NioReceiver address=auto port=4000 autoBind=100 selectorTimeout=5000 maxThreads=6/ Sender className=org.apache.catalina.tribes.transport.ReplicationTransmitter Transport className=org.apache.catalina.tribes.transport.nio.PooledParallelSender/ /Sender Interceptor className=org.apache.catalina.tribes.group.interceptors.TcpFailureDetector/ Interceptor className=org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor Member className=org.apache.catalina.tribes.membership.StaticMember port=51077 securePort=-1 host=10.3.1.34 domain=staging-cluster uniqueId={10,3,1,34}/ Member className=org.apache.catalina.tribes.membership.StaticMember port=51077 securePort=-1 host=10.3.1.33 domain=staging-cluster uniqueId={10,3,1,33}/ /Interceptor Interceptor className=org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor/ /Channel Valve className=org.apache.catalina.ha.tcp.ReplicationValve filter=/ !-- Deployer className=org.apache.catalina.ha.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ -- ClusterListener className=org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener/ ClusterListener className=org.apache.catalina.ha.session.ClusterSessionListener/ /Cluster - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: run service in jdk 6
Hi - Are you using Tomcat5.x with JDK6 in production? Are there any problems to be concerned about? Thanks, Kobe Caldarale, Charles R wrote: From: kkus [mailto:[EMAIL PROTECTED] Subject: How to run tomcat service in JDK6? Double-posting won't improve your chances of getting an answer, but it will annoy people. Has anyone used JDK 6 for 5.5.20? Any idea? I'm using it right now, with no problems. However, the JDK is installed in C:\jdk1.6.0, rather than a directory with spaces embedded in the name (another brilliant Microsoft innovation). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/run-service-in-jdk-6-tf2897742.html#a8311922 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]