Re: webapp_mod problem
[EMAIL PROTECTED] wrote: [..snip..] # ./apachectl start Syntax error on line 235 of /etc/apache/httpd.conf: Cannot load /usr/apache/libexec/mod_webapp.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file /usr/apache/libexec/mod_webapp.so: symbol __lshrdi3: referenced symbol not found Make sure you have a libgcc.so somehwere in the LD_LIBRARY_PATH. That symbol is one that gcc introduces. I've been seeing where gcc 2.whatever dosen't seem to install a libgcc.so anywhere. I ended up pulling apart libgcc.a and putting it back together in a .so and it worked fine after that. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * If God dropped acid, would he see people? * -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Prob loading mod_webapp on Solaris 8.
Matt Goyer wrote: [..snip..] I then get: Syntax error on line 206 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/mod_webapp.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/mod_webapp.so: symbol ap_table_get: referenced symbol not found What am I missing? Can anyone get mod_webapp working on Solaris 8?? If some has.. If you could post a quick install guide of what you did I'd appreciate that. I got it working on Solaris 8 x86. Went back to mod_jk, but that's another story. The ap_table_get function is part of the Apache code and not the mod_webapp stuff. Are you sure that Apache is built to support DSO libs? -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * Someday, we'll look back on this, laugh nervously and change the subject. * -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window
Geoff Howard wrote: We have recently discovered a (P3P?) default in IE 6 that affects accepting cookies across domains. For example, we had a frameset in foo.com that had one frame in foomail.com that was setting a cookie in its own domain, but was refused by IE6's default presumably because the frameset was in a different domain. We were able to change this behavior by editing the preferences mentioned below which were found at ToolsInternet OptionsPrivacy(New tab in IE6)Edit and then adding foomail.com in the list of accepted cookies domains (which was empty). That or you can actually have your third party domain (even if it's your domain the browser is thinking that it is a third party domain since it's not the domain the user actually requested) set a valid P3P header in HTTP response that it sends back. Since you won't be able to get every user on the net to edit their IE6 preferences. Is this really still a Tomcat-User list email discussion though? -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * It's Been Lovely But I Have To Scream Now * -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Connection reset by peer
Nakhate, Monali wrote: hello i am encountering this problem,and believe me,i have xhausted this forum..and lloked for all possible solutions.Finally i am posting this to find some help i have deployed a JSP(BC4J JSP application developed in JDeveloper 3.2.3) application to Tomcat 3.2.3. the application runs fine sometimes,but sometimes,when i try to refresh a jsp page,the jsp page outputs only part of the page.The full page is not seen,if i see the source of th page,i see Error:null and in Tomcat Console i see IOException,Connection reset by peer if i keep refreshing the page,it loads the complete page at some point.Otherwise i have to restart my appliation and keep struggling again. Any help for this? Regards Monali How long is it taking the JSP page to generate and display? Usually the Connection Reset by Peer is because the luser on the other side of the browser has pressed the stop button in the middle of a request. It started to show up alot more with HTTP/1.1 and request pipelining. If it's taking a long time for the JSP to generate could the browser be timing out and shutting down the connection? Are you using MSIE? It has some really bad Keep Alive logic in it (at least with the 5.x strain, I haven't tested out the 6.x strain fully yet). And get the DirecTV US people to send TheWB and UPN to us folks in Atlanta. Buffy and Angel and Smallville over Rabbit Ears sucks. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * Reality is an illusion that occurs due to lack of alcohol. * -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Mod_webapp configuration
Cracauer, David D. wrote: I was afraid of that.. I want all of my html served by apache, and anything in /servlet to be served from tomcat as an app.. I am trying to replace Jrun, and this is how it needs to work for me to be successful. Is it possible? If you don't run mod_webapp and run mod_jk as the connector between Apache and Tomcat you can do exactly what you want. I've actually just stepped back my config from mod_webapp to mod_jk because of this. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * Many people quit looking for work when they find a job. * -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Mod_webapp configuration
Cracauer, David D. wrote: He comes through again! I'll look into mod_jk. I assume I need to use ajpv13. I'd use the Ajp13 stuff, but that's just me. You should be able to find all the latest and greates mod_jk stuff at : http://cvs.apache.org/snapshots/jakarta-tomcat-connectors/ build, both the .so and the .jar and let 'er rip. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * If God dropped acid, would he see people? * -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Mod_webapp configuration
Cracauer, David D. wrote: Can mod_jk be used with Tomcat 4? I sure hope so. I've got it running with 4.0.1 -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * When you can snatch the return address from my stack frame, then it will be time for you to leave. * -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: receiving requests from remote apache server
Peter Matulis wrote: Hi gang, I have always put Apache and Tomcat on the same machine. Now, I want to have them live on separate systems. So my question is, when Apache receives a request, via mod_jk, how do I direct it to my remote Tomcat server(s)? I would assume that you would change the : worker.ajp13.host=localhost from localhost to the remote machine that is now running tomcat in the workers.properties file that is specfied when you setup mod_jk in the Apache config side of things (JkWorkersFile /opt/tomcat/conf/jk/workers.properties ). -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * When you do a good deed, get a receipt, in case heaven is like the IRS. * -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Problem with Apache1.3 Tomcat 4.0.1
Pier Fumagalli wrote: Marko Sarunac at [EMAIL PROTECTED] wrote: What i need to figure out is the WebAppDeploy line. I notice that it by default points to the webapps folder under tomcat how can i specify my war file in here? WebAppDeploy /home/username/www/mywebsite.com.war conn / Pulled the nightly from last night and got it to build on my Solaris x86 box and actually work with Apache. That's cool. Now though my question is about the above WebAppDeploy. If just '/' is mapped does that mean all requests will pass through the mod_webapp connector? I'm trying to get it setup so that just a {host}/servlet will actually invoke the servlets. If I attempt something like : WebAppDeploy /www/foo/java/servlet conn /servlet where /www/foo is document-root and having to create a WEB-INF symlink to that directory from inside of it, in order to actually have the servlet fire the request is {host}/servlet/servlet/HelloWorld, which looks like kind of silly. So, just a conn / would probably work, but I don't need all the overhead of dealing with a module if it's not necessary for each request. And does the mod_webapp work with JSP's or is it back to the mod_jk world for that stuff? -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * I Used to Be Schizophrenic, But We're OK Now * -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
IllegalStateException from jsp:include..
It looks like on a jsp:include from Tomcat 4.0.1 on Solaris x86 (JDK 1.3.1_01) I'm getting a IllegalStateException when the JSP engine actually attempts to include the file (Stack Trace from include in JSP is at the end). For the Apache side of things I've got document-root set to /www/si/sifk/ and a symlink from ${CATALINA_HOME}/webapps/ROOT/WEB-INF/classes to the actual location of all the Servlets in the document-root (NFS mounted to be spread across multiple machines and one deployment sport). Is there a way to get the JSP/Jasper engine to realize a different ROOT than the one the servlets are loaded from? I'd like to set the JSP root to the same as the Apache document-root so that all things are be dployed at once and I don't have to go and adjust symlinks for new things. I'm guess that it's either Jasper/Catalina/Tomcat or the JVM that's having an issue with attempting to include a file from a symlink. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * If one synchronized swimmer drowns, do the rest drown too? * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Shutdown Tomcat
Evan Swanson wrote: Yeah, I have been wondering the same thing. On unix is seems that you have to kill the process. Shutdown.bat and shutdown.sh do not seem to stop the Tomcat process. I am guessing they just log off all of the sessions 'gracefully' You then have to manually kill the process? I am not sure if this is a problem with tomcat or it is supposed to be that way. It seems to be the same effect when you use the manager application to shutdown tomcat so I am guessing that it was designed to work that way. I have been unable to find any doco on the subject. Does anybody know a better way of shutting down the server than killing the process? I've got Tomcat 4.0.1/JDK1.3.1_01 shutting down happily on Solaris x86 just spiffy like. It does seem to take it a while to spool everything down. Currently it's only loading about 10 servlets and if I tail the output log as the thing is shutting down I can see it hitting all the destroy() methods and shutting down JNDI, JDBC and LDAP connections. Make sure that all your servlets clean up after themselves and it should shutdown fine. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * I used to have a handle on life, but it broke. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Performance..
Jeff Kilbride wrote: I'm a little surprised by your performance numbers, actually. I wrote a small servlet to test Apache + Tomcat + MySQL speed and tested it on an intel celeron 433MHz box with a single IDE drive and 128MB of RAM -- pretty much a piece of crap. I ran Tomcat 3.2.1, ajp13, Apache 1.3.19, the IBMJava2-13 JVM, RedHat 6.2 with the 2.4.3 kernel -- with almost no configuration tweaking (default server.xml, default JVM settings). The servlet would take a GET request, insert the parameters into the database, and then redirect to another page on the same box. I was able to get 54 inserts per second into the database with 25 threads running, which equates to 108 requests with the redirect. I was running a connection pool of 20 connections to the database. The network was a 100bT LAN and I ran each test for 10 minutes -- multiple times with the same results. I tested mod_jk/ajp13 against mod_jserv/ajp12 and found mod_jk to be almost 60% faster -- plus it's performance was a lot smoother. I was using the Web Performance Trainer software from http://webperformanceinc.com/products/ Did you synchronize either your doGet() or the method that did the insert/update into the DB? Maybe the problem does lie in Tomcat 3.3 and I should back out to 3.2.2. The problem dosen't seem to be Hardware or OS related since it's the same crappy performance on both an Ultra 60 and a Intel box. I started off the testing with the request that I know should be the slowest out of all of them since it is a synchronized method for a Database insert/update. I'll drop the U60 back to Tomcat 3.2.2 and see if that gets any better numbers out of it. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * Money Isn't Everything, But it Sure Keeps the Kids In Touch *
Re: Tomcat Performance..
Jeff Kilbride wrote: No, I didn't synchronize either. That would defeat the purpose of my connection pool and *really* slow down performance. Right, that's why I expected crappy performance from the servlet as a whole, since I synchronized the method. What has me bothered is the 39 requests per second on iPlanet, 16 requests per second talking straight to Tomcat 3.3 and 4 requests per second talking to Apache 1.3.19 w/ mod_jk.so in ajp13 mode talking to Tomcat 3.3. I could understand like a 30%-50% performance drop from iPlanet-Apache, but from 39 RPS to 4 RPS seems a bit absurd. If you're synchronizing access to the method that does your insert/update, then that's your bottleneck. Do you really have to synchronize it? Can you rewrite the SQL to avoid the overhead of synchronizing in Java? Are you synchronizing the entire method or just the block of code that does the insert/update? Well, let's just cut the whole insert out of the formula and state that it's an update. It has to be synchronized since a request from a luser comes in, we take that data get data out of the database, add them together and update it back into the database. It's not a scientific kind of thing nor are lives depending on it, but if it's not synchonized and I push 1000 requests against it about 100 of them actually get counted, while syncronized they all get counted. And actually in testing against iPlanet itself the syncronized was just a smidge faster than non-syncronized. We think it has something to do with Oracle's row locking on updates. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * Black holes are where God divided by zero. *
Re: Tomcat Performance..
Craig O'Brien wrote: Hello, Those are similar numbers to what I have been getting on Intel platforms with Tomcat3.2.1. You can boost Tomcat to about 90 pages per second using ajp13, mod_jk, and reducing the log level to warn rather then info. (of course your Servlet code makes a difference) There is actually a bug in the logging with Tomcat 3.2.1 -- info actually gives you debug log level. According to GOMEZ the ajp13 connector is not fully optimized and mod_jk is still unfinished. Apache's performance can be boosted by limiting the modules that you use and reducing log levels as well. Interestingly, I was testing a servlet which displayed date, session variables, and generated a random password and clocked in at about 88 pages per second with mod_jk. When I direct connected to Tomcat I was able to get 463 pages per second with no errors so there is allot of potential there. I was able to top out at 1107 pages per second on that servlet with Resin. Consider your bandwidth, of course, 50-60 pages per second can easily overwhelm a T1 line. Indeed with a standard 45k+ page you would be lucky to anywhere near 25. Ok, since some questioned my methodology before I've re-run the tests on the same box (a Sun Ultra 60 2x360 Mhz with Solaris 6 installed). The same servlet has been used for all this testing. Bandwidth isn't a problem in our case since I'm pretty sure the two OC-48's and seven OC-3's can handle pretty much whatever we've got coming in. All tests were run with 1000 requests and a concurrency of 10. Apache 1.3.19/Tomcat 3.3M2 with mod_jk in ajp13 usage mode turned out around 5.37 requests per second with a very very very high IO wait. One question would be does the mod_jk module open adn close a connection to the Tomcat engine for every request? That would surely hurt performance. Talking straight to Tomcat we get 16.11 requests per second. No IO Wait and it just does it's thing. iPlanet 4.1SP6 will whip out about 38 requests per second. The apache build is just a straight build with only the mod_so module installed along with the default settings. mod_jk was setup with 'warn' as the logging option even though a 'none' would be nifty. So it sort of goes back to the original question of is 3.3M2 the way to go or the 3.2.x family or possibly the 4.x for the best performance? What about the Apache 2.x tree? -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * If at first you don't succeed...blame someone else and seek counseling *
Re: How is your knowledge on TomCat??????
Magnus Jansson wrote: I have sent three questions on how to get tomcat running on NetWare, I havent even got one single answer on how to do it or not even any ideas. Cant you anything about TomCat, now have I give up though Novell Portal Services is running on Apache and TomCat. All I want is a startscript but nooo. It's probably not that no one knows Tomcat, but that no one knows Netware. Why don't you just take what's in the Windoze .bat file for starting up Tomcat and change it into a tomcat.ncf file, put it on your netware box(s), rconsole in and type in 'tomcat.ncf' and see if that starts it up. Otherwise begin to debug from teh error messages that it spews. Then when you get it working added tomcat.ncf into autoexec.ncf so that it'll start every time you reboot your server. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * I'm really easy to get along with once you people learn to worship me. *
Re: Servlet -- File -- Web-browser
On Thu, May 03, 2001, Purple Mutants made tim leung write: yup, you are right william. it's not really exception. it's thread's running state at the time i push Crt+Break. One thing i have been stuck for 1/2 month is that : why the thread still running when i click canel on IE? click cancel in IE (i think) would close the TCP connection. servlet would konw that in the socket immediately ( this is the case in netscape). and caught an exception. I suspect IE still keeps the TCP connection even after user click cancel. (that's bit strange idea). but what else can keep the thread in servlet keep running if the socket is closed? the thread didn't dies if i make another request, it's still there. MSIE very loosely honors the HTTP/1.1 spec. If your webserver is setup to allow HTTP/1.1 connection with keep-alives then MSIE will keep the connection open even if the user has hit stop. It also does weird things the a keep-alive timeout. You could try forcing the webserver to not allow keep-alives and trying the same test to see if you get an exception or not. I don't remember from the start of the thread if you are using one of the apache modules or talking straight to Tomcat. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * I see you've set aside this special time to humiliate yourself in public. *
Re: Tomcat Performance..
Kief Morris wrote: It sounds like you tested Tomcat on an HP, and Tomcat on an x86 with Solaris 8, vs. iPlanet on an Ultra running Solaris 2.6. You are then guessing that the difference in performance is entirely due to the servlet engine? Have you tried testing Tomcat vs. iPlanet on *identical* hardware/OS platforms? Well, alas I haven't been able to talk the iPlanet folks into building iWS for me on Solaris x86 yet so I can't test it that way. In testing just straight normal everyday static HTML serving between Apache and iPlanet between the two platforms I get a more expected performance difference. Where the iWS server can spit back something like 200 requests per second and the Apache server can spit back 170 requests per second. That would be what I expect. I've got a couple of other projects I've got to get done here today and then I was planning on building the Apache/Tomcat setup over on the Ultra 60 to see if the performance numbers are still skewed as much on the same platform. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * There's too much blood in my alcohol system. *
Re: mod_jk.so linking/compiling problem.
Kevin Shortt wrote: Then I've done this: gcc -shared -o mod_jk.so *.o And recieved this: ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status Try it with gcc -shared -o mod_jk.so *.o -lposix4 that worked for me on Solaris 8 x86. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * A bartender is just a pharmacist with a limited inventory. *
Re: solaris exception
On Sun, Apr 29, 2001, Purple Mutants made johnd write: Anyone running Solaris 8 x86? Ohh ohh me me.. Since switching to Solaris I see a lot of 'SocketExceptions:' something about reset my peer... What log file are you seeing these in? If your seeing them in the Webserver logs that I wouldn't really worry about it. If your seeing it alot in the Tomcat logs and your getting issues with servlets then I would make sure you have the OS up to the latest patche levels looking especially at the TCP/IP patches. I've got my x86 box almost fully setup and probably going live with production traffic middle of next week, so I'll see if I have any of those error messages pop up. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * I'm already visualizing the duct tape over your mouth. *