Re: thread dump analysis
Hi, Saw your message on the boards. Did you make sure you have this environment variable set? On systems that I need it, I put it in my tomcat startup file. LD_KERNEL_ASSUME=2.2.5 Check out my howto page for my brief notes on threading and it's potential problems with JVMs and threads. http://www.linuxjava.net/howto/webapp/ Oscar On Tue, 17 Feb 2004, Daniel Gibby wrote: My tomcat 4.1.29 instance running J2RE 1.4.1 IBM build cxia321411-20030930 on RedHat 9 kernel 2.4.18-14 keeps gaining processor usage until finally can't answer requests successfully. The machine has a relatively light load. I did a kill -3 on the process that showed up on top and got a stack trace... the problem is I have no idea how to analyze the thread dump to see what is consuming CPU. I'm sure something must be spinning its wheels, but I don't know how to tell... I can just see that when I run top my tomcat process has 99.9 % of the CPU and the load average is 8.00 8.00 8.00 I've fixed problems in the past on a separate java application (not tomcat) where I can tell what the problem is in the thread dump because a thread waiting to be notified is also the one that has a lock on it to notify the thing that is waiting to notify it... (that didn't make sense, I know... but anyway it is basically a circle where it won't ever get woken up.) However, in this tomcat case, I can't see anything like that where something is waiting in circles... even though I wouldn't rule that out. My experience on reading thread dumps is limited... Anyway, can someone who has better experience tell me what is consuming the CPU? Restarting tomcat brings the load back down, and it slowly goes up again... like over a few days to a weeks time it is back up to 8.00 Load Average. I won't include the whole file. I trimmed the file down to 1350 lines by getting rid of a lot of 2HPMEMMAPLINE lines and the section titled: 0SECTION CL subcomponent dump routine but I think that is still too long to post here. I'm hoping that someone can tell me what to include and what to exclude and I'll reply with the appropriate parts of the dump. Thanks, Daniel NULL 0SECTION TITLE subcomponent dump routine NULL === 1TISIGINFO signal 3 received 1TIDATETIMEDate: 2004/02/17 at 08:53:22 1TIFILENAMEJavacore filename:/tmp/javacore.20040217.085322.23429.txt NULL 0SECTION XHPI subcomponent dump routine NULL == 1HPTIMETue Feb 17 08:53:22 2004 1HPSIGRECV SIGQUIT received in ?? at (nil) in ??. 1HPFULLVERSION J2RE 1.4.1 IBM build cxia321411-20030930 NULL 1HPOPENV Operating Environment NULL - 2HPHOSTNAMEHost : somehost.com.(none) 2HPOSLEVEL OS Level : 2.4.18-14.#1 Wed Sep 4 13:35:50 EDT 2002 2HPLIBCVER glibc Version: 2.2.93 2HPCPUSProcessors - 3HPARCH Architecture : (not implemented) 3HPNUMCPUS How Many : (not implemented) 3HPCPUSENABLED Enabled : 1 NULL 1HPMEMINFO Memory Info NULL --- 2HPMEMLINE total:used:free: shared: buffers: cached: 2HPMEMLINE Mem: 1055625216 1015181312 404439040 83464192 614227968 2HPMEMLINE Swap: 1052827648 929792 1051897856 2HPMEMLINE MemTotal: 1030884 kB 2HPMEMLINE MemFree: 39496 kB 2HPMEMLINE MemShared: 0 kB 2HPMEMLINE Buffers: 81508 kB 2HPMEMLINE Cached: 599596 kB 2HPMEMLINE SwapCached:236 kB 2HPMEMLINE Active: 552968 kB 2HPMEMLINE Inact_dirty:344020 kB 2HPMEMLINE Inact_clean: 50304 kB 2HPMEMLINE Inact_target: 189456 kB 2HPMEMLINE HighTotal: 130880 kB 2HPMEMLINE HighFree: 1024 kB 2HPMEMLINE LowTotal: 94 kB 2HPMEMLINE LowFree: 38472 kB 2HPMEMLINE SwapTotal: 1028152 kB 2HPMEMLINE SwapFree: 1027244 kB 2HPMEMLINE Committed_AS: 1067972 kB NULL 1HPUSERLIMITS User Limits (in bytes except for NOFILE and NPROC) - NULL --- 2HPUSERLIMIT RLIMIT_FSIZE : infinity 2HPUSERLIMIT RLIMIT_DATA: infinity 2HPUSERLIMIT RLIMIT_STACK : 2093056 2HPUSERLIMIT RLIMIT_CORE: 0 2HPUSERLIMIT RLIMIT_NOFILE : 1024 2HPUSERLIMIT RLIMIT_NPROC : 7168 NULL 1HPSIGHANDLERS JVM Signal Handlers NULL --- 2HPSIGHANDLER HUP: unknown handler 2HPSIGHANDLER INT: unknown handler 2HPSIGHANDLER QUIT : unknown handler 2HPSIGHANDLER ILL: unknown handler 2HPSIGHANDLER TRAP : unknown handler 2HPSIGHANDLER
Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
Hi, I assume that's an Apache error your getting. If that's true, then that means it's not mapped to Tomcat. I don't know anything about the mod_jk2 syntax, which sounds like the problem. Do you do the proper include for the workers2.properties in httpd.conf, which I assume you need to do? Alternatively, if you've gotten it work in both HTTP and HTTPS, you can redirect HTTP to HTTPS. Then it works, but you don't have the option of having a separate webapp for HTTP. Good luck, Oscar On Wed, 4 Feb 2004, Ralf Schneider wrote: Am Montag, 2. Februar 2004 22:40 schrieb Oscar Carrillo: The method I describe may not work w/ mod_jk2. Frankly, I don't know. But I did a search and found this site, which seems to show that you can define these things in workers2.properties http://www.pixelfreak.net/howto/apache2_jk2_tomcat/socket.html Hi Oscar, thanks for your help! I looked at this site and tried this in my workers2.properties: [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/demo_02/*:443] info=Map the whole webapp worker=ajp13:localhost:8009 My intension was to map all requests to /demo_02 that come over HTTPS to the tomcat project. Unfortunately, I get an error message saying: You don't have permission to access /demo_02 on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. When I remove the port specification of the mapping it works, but with both HTTP and HTTPS :-( Do you have any idea what might be the problem? Ralf. - 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: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
You should try it in the VirtualHost declaration. That's where I would put it. Oscar On Wed, 4 Feb 2004, Ralf Schneider wrote: Am Mittwoch, 4. Februar 2004 20:21 schrieb Oscar Carrillo: Alternatively, if you've gotten it work in both HTTP and HTTPS, you can redirect HTTP to HTTPS. Then it works, but you don't have the option of having a separate webapp for HTTP. I tried this with the following statement in httpd.conf (outside a VirtualHost declaration): Redirect /demo_02 https://localhost/demo_02 But that had no effect. I could access the page with both HTTP and HTTPS. Ralf. - 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: Back to the nonsecure items problem
Hi, I've noticed this too when including a Flash application. I noticed that only IE complains. Mozilla doesn't. Is this the same case for you? Oscar On Tue, 3 Feb 2004, Wendy Smoak wrote: I'm trying to serve a PDF from a Servlet and I'm getting the This page contains both secure and nonsecure items. Do you want to display the nonsecure items prompt from IE. This is a confidential accounting report, so that just won't do! I was hoping that when I put the webapp behind Apache, that the warning would magically go away since Apache would handle encrypting the transmission back to the client browser, but that does not seem to be the case. The Apache HTTP server does have a Thawte certificate. My next idea is to try to install that same certificate on Tomcat. But I don't think that's going to do it entirely. Here's some of the code that writes out the PDF: ByteArrayOutputStream baosPDF = null; ... ServletOutputStream sos; sos = resp.getOutputStream(); baosPDF.writeTo( sos ); Can someone give me a pointer on what would have to change to encrypt the PDF so that the browser will stop complaining about nonsecure items? I can't have the 'nonsecure items' prompt, and I assume I will need a known good certificate-- can I use the same one that we're using on Apache? Or am I headed in a completely wrong direction? We've discussed this here before, and in the meantime I've gotten a handful of inquiries wondering if I solved the problem. As far as I know, it's still an open question. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Back to the nonsecure items problem
I imagine it might just be a poor implementation in IE. It might be doing something stupid like determining that the inclusion of a mimetype is nonsecure. It doesn't make sense that anything could go through http when accessing via https, without a link in your page that points to somewhere else. To make sure, you could disallow http access to the site completely, and/or block port 80 at your firewall. Otherwise, I'm sure there's a security hole in IE that you could make it think that anything from anywhere is secure. :) Oscar On Tue, 3 Feb 2004, Wendy Smoak wrote: From: Oscar Carrillo [mailto:[EMAIL PROTECTED] I've noticed this too when including a Flash application. I noticed that only IE complains. Mozilla doesn't. Is this the same case for you? Yes. :( And most of my users are on IE. So... Has anyone pinned down what Tomcat is sending that makes IE upset? I saw a post in the archives where someone thought maybe the text/pdf header was going in clear text? Any thoughts on appropriating the Thawte certificate that Apache is using and installing it on Tomcat, or is that not really the problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4 and Linux SMP
Don't expect Hyperthreading to work without compiling a new kernel. BTW, I would update all your other packages, and maybe even updating to RedHat 9. In fact, I was not aware that there was that late of a kernel RPM version for RedHat 8. In addition, I don't think you can run Tomcat with a JRE. You have to use a JDK. Oscar On Tue, 3 Feb 2004, arvind singh wrote: Hi, I am using RedHat 8 with SMP kernel. OS: RedHat 8 Kernel: kernel-smp-2.4.20-20.8.i686.rpm Tomcat: tomcat4-4.1.18-full.1jpp.noarch.rpm Java: j2re-1_4_1_06-fcs-linux-i586.rpm The Intel processor is hyperthreaded. Tomcat fails to startup. Below is the stack trace. --- Unexpected Signal : 11 occurred at PC=0x40444B40 Function=(null)+0x40444B40 Library=/usr/java/j2re1.4.1_06/lib/i386/server/libjvm.so NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at java.util.zip.ZipFile.getEntry(Native Method) at java.util.zip.ZipFile.getEntry(ZipFile.java:149) - locked 0x460bb3d0 (a java.util.jar.JarFile) at java.util.jar.JarFile.getEntry(JarFile.java:184) at java.util.jar.JarFile.getJarEntry(JarFile.java:171) at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:669) at sun.misc.URLClassPath.getResource(URLClassPath.java:156) at java.net.URLClassLoader$1.run(URLClassLoader.java:190) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) - locked 0x45731b70 (a sun.misc.Launcher$AppClassLoader) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:272) - locked 0x45731b70 (a sun.misc.Launcher$AppClassLoader) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) - locked 0x45731830 (a org.apache.catalina.loader.StandardClassLoader) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:921) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValvejava:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValvejava:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at
Re: Tomcat 4 and Linux SMP
On Tue, 3 Feb 2004, arvind singh wrote: Hyperthreading is working fine. Tomcat is working very well with non SMP kernel and only with JRE. RedHat has nothing new other than a better dektop. But later glibc, gcc, and nptl libraries. I can see virtual processor and other apps. work just well with very good performance. This SMP kernel was released by RedHat Network for 8. Look up bugs and changelogs on kernel.org, and you'll see there were a lot of problems with hyperthreading which were only very recently fixed. It may seem to work fine with other applications, but java threads is a whole other ball of wax. Oscar http://www.linuxjava.net/howto/webapp/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
I describe this in my HOWTO. http://www.linuxjava.net/howto/webapp/ You either redirect traffic from http to https for that virtual host, or you only mount the webapp in the http virtual host and not for the https. Oscar Carrillo On Mon, 2 Feb 2004, Ralf Schneider wrote: Am Montag, 2. Februar 2004 13:55 schrieb Yiannis Mavroukakis: Best remove that line, stick it in your httpd.conf instead along with the hostname. This wasn't the problem. I did not notice that mod_ssl was not compiled into httpd :-( After a rebuild of Apache (now with SSL support :-) and works now. My last problem to solve (I hope :-) is how can I prevent user from accessing the webapp with the normal HTTP protocol instead of HTTPS? At the moment both works, but I only want it to work with HTTPS. Ralf. - 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: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
BTW, there's sample http.conf, ssl.conf, and server.xml files there. In the config files, I denote your host that resolves to an IP as myhost.mydomain, and your virtual host as host1.domain. http://www.linuxjava.net/howto/webapp/install_files/ Oscar On Mon, 2 Feb 2004, Oscar Carrillo wrote: I describe this in my HOWTO. http://www.linuxjava.net/howto/webapp/ You either redirect traffic from http to https for that virtual host, or you only mount the webapp in the http virtual host and not for the https. Oscar Carrillo On Mon, 2 Feb 2004, Ralf Schneider wrote: Am Montag, 2. Februar 2004 13:55 schrieb Yiannis Mavroukakis: Best remove that line, stick it in your httpd.conf instead along with the hostname. This wasn't the problem. I did not notice that mod_ssl was not compiled into httpd :-( After a rebuild of Apache (now with SSL support :-) and works now. My last problem to solve (I hope :-) is how can I prevent user from accessing the webapp with the normal HTTP protocol instead of HTTPS? At the moment both works, but I only want it to work with HTTPS. Ralf. - 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: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
Hi, It sounds like you're talking about configuring Tomcat to do SSL, but I assume the user is using Apache for SSL. In the normal scenario the connector would ONLY communicate on port 8009. Port 8443 is generally for Tomcat to serve pages directly using SSL. I think what the user is looking for is this in httpd.conf for your virtual host: #httpd.conf VirtualHost section of myhost.mydomain Redirect /mywebapp https://myhost.mydomain/mywebapp Oscar http://www.linuxjava.net/howto/webapp/ On Mon, 2 Feb 2004, Jeff Tulley wrote: You can also put a transport guarantee of CONFIDENTIAL in web.xml When you do make sure that your redirect ports on the Apache connector in server.xml are correct (default is 8443, needs to be 443 if you are using Apache for SSL). [EMAIL PROTECTED] 2/2/04 10:32:51 AM I describe this in my HOWTO. http://www.linuxjava.net/howto/webapp/ You either redirect traffic from http to https for that virtual host, or you only mount the webapp in the http virtual host and not for the https. Oscar Carrillo On Mon, 2 Feb 2004, Ralf Schneider wrote: Am Montag, 2. Februar 2004 13:55 schrieb Yiannis Mavroukakis: Best remove that line, stick it in your httpd.conf instead along with the hostname. This wasn't the problem. I did not notice that mod_ssl was not compiled into httpd :-( After a rebuild of Apache (now with SSL support :-) and works now. My last problem to solve (I hope :-) is how can I prevent user from accessing the webapp with the normal HTTP protocol instead of HTTPS? At the moment both works, but I only want it to work with HTTPS. Ralf. - 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] Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OFF-TOPIC] CSInline decrypt error 2
Do you mean to say that it doesn't happen when NOT using Ant? Just wondering. Not too much to add. I'm assuming this is the JDBC driver's inability to handle the streaming for Blobs. What database and driver are you using? I could try it with Postgres 7.4.1 in the near future. I don't really know anything about Blobs, so take what I say with a grain of salt :) Oscar On Mon, 2 Feb 2004, Shapira, Yoav wrote: Hi, Has anyone seen an error message with the title in the subject line before? I get it when I run a java class using ant that contains the following construction: ResultSet rs = ... Blob blob = rs.getBlob(columnName); String str = new String(blob.getBytes(1, (int) blob.length()); The method with the above code is declared to throw SQLException, and the calling method has a System.exit(1) if an exception is thrown, but it's some kind of internal error because my java program keeps going, printing to stderr: Error - CSInline decript error 2 (nothing else, no stack trace etc, just the above line repeating once per row in my result set). If I change the code to do reading via blob.getBinaryStream, to a StringWriter, the errors goes away. So I have a fix, and this is nothing urgent, just a curiosity that became even more interesting when I didn't see any google references for this error. Has anyone else seen it before? Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
Please try what I describe in my earlier post, and check my web page for a better description: http://www.linuxjava.net/howto/webapp/ Oscar On Mon, 2 Feb 2004, Ralf Schneider wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Montag, 2. Februar 2004 17:30 schrieb Yiannis Mavroukakis: Use the Location directive and stick SSLRequireSSL in it. Location /path/to/root/of/webapp SSLRequireSSL /Location I tried this, but it doesn't seem to work. I actually have three location sections in the virtual host section for SSL in my ssl.conf: Location /demo_02/* SSLRequireSSL Order Allow,Deny Allow from All /Location Location /demo_02/WEB-INF/* AllowOverride None deny from all /Location Location /demo_02/META-INF/* AllowOverride None deny from all /Location But I still can access the webapp with both http://localhost/demo_02 and https://localhost/demo_02. Ralf. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAHsJC7YyyfykA0YkRAl5SAJ94hC0SroJZOBZsCwykdNJS885sHwCghuqD aR4aGgAWV+oEpv1QO8huIpA= =ye1K -END PGP SIGNATURE- - 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: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
I believe you need to setup a VirtualHost section in httpd.conf even if you don't really need Virtual Hosting. Also try Redirecting the whole site. I'm not sure if I've tried just the webapp. I'm not sure if you need to compile the rewrite module for the redirect, but I don't think so. #httpd.conf VirtualHost section of myhost.mydomain Redirect / https://myhost.mydomain/mywebapp Also, you can't include the mod_jk configuration. You must put the mount commands explicitly in each virtual host. If you include the modjk conf file Include mod_jk.conf, then it will be global and all hosts will get access. This is likely your problem especially if you haven't put mod_jk mount commands in ssl.conf. Oscar http://www.linuxjava.net/howto/webapp/ On Mon, 2 Feb 2004, Ralf Schneider wrote: Am Montag, 2. Februar 2004 21:01 schrieb Oscar Carrillo: I think what the user is looking for is this in httpd.conf for your virtual host: #httpd.conf VirtualHost section of myhost.mydomain Redirect /mywebapp https://myhost.mydomain/mywebapp I tried this, but it doesn't seem to work. I added this line to the virtual host block for the Non-SSL part of the website in httpd.conf: Redirect /demo_02 https://localhost/demo_02 But I still can access the webapp with both http://localhost/demo_02 and https://localhost/demo_02. Ralf. - 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: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
You're right it's for mod_jk. But the httpd.conf would mostly be the same, which is where your problem is. You must only mount (no global include mod_jk2.conf) the webapp in ssl.conf, and additionally you can redirect http to https in httpd.conf so that ppl automatically get moved to https. Oscar http://www.linuxjava.net/howto/webapp/ On Mon, 2 Feb 2004, Ralf Schneider wrote: Am Montag, 2. Februar 2004 21:21 schrieb Oscar Carrillo: Please try what I describe in my earlier post, and check my web page for a better description: http://www.linuxjava.net/howto/webapp/ I took a look at it, but it seems to be a howto for mod_jk with Tomcat 4.1.x. But I have used mod_jk2 with Tomcat 5.0.16. Does the Howto also work with these newer versions? Ralf. - 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: Tomcat5 RH ES mod_jk2 Apache2
Absotively! Long-live the Source. Oscar On Mon, 2 Feb 2004, Rich Baldwin wrote: Ok. I'm ready to partially retract all of the mean things that I said about tomcat. If anyone thinks that they will be saving themselves time by installing an rpm of mod_jk2.so, think again; re-build from the source! Thanks to all you responded. Rich Hamilton Andrew wrote: I have RH AS and I use Tomcat5, mod_jk2, and apache2 and they all work fine. I use the uri's you say don't work, ie [uri:/servlets-examples/*] works just fine for me. You are free to do what you like as far as switching to a different framework. I see several people are trying to help you and it might help to post your entire current workers2.properties and your jk2.properties. Does everything work properly when you use just Tomcat and not apache? Here is my workers2.properties: # [logger.apache2] level=DEBUG [shm] file=/www/apache2/logs/shm.file size=1048576 # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/jsp-examples/*] info=Map the jsp-examples webapp worker=ajp13:localhost:8009 [uri:/servlets-examples/*] info=Map the servlets-examples webapp worker=ajp13:localhost:8009 # And my jk2.properties: # # Set the desired handler list handler.list=channelSocket,request # # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/www/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess # -Original Message- From: Rich Baldwin [mailto:[EMAIL PROTECTED] Sent: Monday, February 02, 2004 2:04 PM To: Tomcat Users List Subject: Re: Tomcat5 RH ES mod_jk2 Apache2 Well. I have gotten Tomcat5, RH ES, mod_jk2, and apache2 all working. I've come to the conclusion that the clowns who developed this stuff sit back and watch the traffic on the list and laugh. Here is what you need to do in your workers2.properites file: For every servlet you need to define a worker in worker2.properties. [uri:/servlets-examples/*] This won't work, but this will [uri:/servlets-examples/servlet/HelloWorldExample] [uri:/servlets-examples/servlet/RequestInfoExample] etc. [uri:/servlets-examples/servlet/*] won't work [uri:/servlets-examples/servlet/*.*] won't work [uri:/servlets-examples/servlet/*e] will work, but all of your servlets must end with the letter 'e' Unless one of you fine developers want to clear this up. I'm going to switch to Jetty. Tomcat is crap!!! Yiannis Mavroukakis wrote: Curious...Send me your entire workers2.properties file and I'll have a look. Also, what are the urls you are using to access your html/jsp/servlets? Feel free to use 'localhost' if you don't want to reveal sensitive server hostname/ip's Yiannis -Original Message- From: Rich Baldwin [mailto:[EMAIL PROTECTED] Sent: 02 February 2004 15:22 To: Tomcat Users List Subject: Re: Tomcat5 RH ES mod_jk2 Apache2 Same as in the past works fine on port 8080. Jsp stuff works on port 80. Html in servlets-examples works fine. Servlets cannot be found??? Yiannis Mavroukakis wrote: Hmm ok.. :) you don't need channelSocket.address=127.0.0.1 in jk2.properties. Add the following under [channel.socket:localhost:8009] host=localhost port=8009 and under [ajp13:localhost:8009] add this channel=channel.socket:localhost:8009 Before you go about making those changes, make sure that your servlets are working OK on standalone tomcat :) Good luck, Yiannis. -Original Message- From: Rich Baldwin [mailto:[EMAIL PROTECTED] Sent: 02 February 2004 14:10 To: Tomcat Users List Subject: Re: Tomcat5 RH ES mod_jk2 Apache2 The jsp is working but not the servlets. I've double check /alias and workers for typos. Other suggestions?? Yiannis Mavroukakis wrote: Make these additions/ammendments to workers2 [ajp13:localhost:8009] channel=channel.socket:localhost:809 [shm] file=/tmp/shm.file size=100 Yiannis. -Original Message- From: Rich Baldwin [mailto:[EMAIL PROTECTED] Sent: 30 January 2004 18:27 To: [EMAIL PROTECTED] Subject: Tomcat5 RH ES mod_jk2 Apache2 I finally made some progress configuring Tomcat5 Apache2 and mod_jk2
Re: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
Hi, The JkMount directives tell Apache to pass these request thru the Connector to Tomcat. I do this very same thing for jWebMail, cause I don't want it accessible thru http, only https. Here's my ssl.conf config section for it: -- VirtualHost _default_:443 #Other stuff about your ssl host #Webmail # Static files Alias /webmail /usr/local/tomcat/webapps/webmail Directory /usr/local/tomcat/webapps/webmail Options Indexes FollowSymLinks DirectoryIndex index.jsp /Directory Location /webmail/META-INF/* AllowOverride None deny from all /Location Location /webmail/WEB-INF/* AllowOverride None deny from all /Location JkMount /webmail/do/* ajp13 JkMount /webmail/*.jsp ajp13 JkMount /webmail/WebMail ajp13 JkMount /webmail/WebMail/* ajp13 --- Does that help? BTW, this is all on my site but there's quite a bit of stuff there that you can miss it. Oscar http://www.linuxjava.net/howto/webapp/ On Mon, 2 Feb 2004, Ralf Schneider wrote: Am Montag, 2. Februar 2004 21:26 schrieb Oscar Carrillo: I believe you need to setup a VirtualHost section in httpd.conf even if you don't really need Virtual Hosting. I did that. Also try Redirecting the whole site. I'm not sure if I've tried just the webapp. I'm not sure if you need to compile the rewrite module for the redirect, but I don't think so. #httpd.conf VirtualHost section of myhost.mydomain Redirect / https://myhost.mydomain/mywebapp But I don't want to do this with the whole site, because there are parts that should be accessible with normal HTTP. Also, you can't include the mod_jk configuration. You must put the mount commands explicitly in each virtual host. If you include the modjk conf file Include mod_jk.conf, then it will be global and all hosts will get access. This is likely your problem especially if you haven't put mod_jk mount commands in ssl.conf. I did not put any JKMount statements in ssl.conf. Which do I need? Something like this: JKMount /demo_02/* ajp13 Or anything else? I think I did not understood correctly what this JkMount does. Ralf. - 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: HTTPS with Apache 2.0.48 and Tomcat 5.0.16
The method I describe may not work w/ mod_jk2. Frankly, I don't know. But I did a search and found this site, which seems to show that you can define these things in workers2.properties http://www.pixelfreak.net/howto/apache2_jk2_tomcat/socket.html Oscar http://www.linuxjava.net/howto/webapp/ On Mon, 2 Feb 2004, Oscar Carrillo wrote: Hi, The JkMount directives tell Apache to pass these request thru the Connector to Tomcat. I do this very same thing for jWebMail, cause I don't want it accessible thru http, only https. Here's my ssl.conf config section for it: -- VirtualHost _default_:443 #Other stuff about your ssl host #Webmail # Static files Alias /webmail /usr/local/tomcat/webapps/webmail Directory /usr/local/tomcat/webapps/webmail Options Indexes FollowSymLinks DirectoryIndex index.jsp /Directory Location /webmail/META-INF/* AllowOverride None deny from all /Location Location /webmail/WEB-INF/* AllowOverride None deny from all /Location JkMount /webmail/do/* ajp13 JkMount /webmail/*.jsp ajp13 JkMount /webmail/WebMail ajp13 JkMount /webmail/WebMail/* ajp13 --- Does that help? BTW, this is all on my site but there's quite a bit of stuff there that you can miss it. Oscar http://www.linuxjava.net/howto/webapp/ On Mon, 2 Feb 2004, Ralf Schneider wrote: Am Montag, 2. Februar 2004 21:26 schrieb Oscar Carrillo: I believe you need to setup a VirtualHost section in httpd.conf even if you don't really need Virtual Hosting. I did that. Also try Redirecting the whole site. I'm not sure if I've tried just the webapp. I'm not sure if you need to compile the rewrite module for the redirect, but I don't think so. #httpd.conf VirtualHost section of myhost.mydomain Redirect / https://myhost.mydomain/mywebapp But I don't want to do this with the whole site, because there are parts that should be accessible with normal HTTP. Also, you can't include the mod_jk configuration. You must put the mount commands explicitly in each virtual host. If you include the modjk conf file Include mod_jk.conf, then it will be global and all hosts will get access. This is likely your problem especially if you haven't put mod_jk mount commands in ssl.conf. I did not put any JKMount statements in ssl.conf. Which do I need? Something like this: JKMount /demo_02/* ajp13 Or anything else? I think I did not understood correctly what this JkMount does. Ralf. - 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]
Updated WebApp Tutorial
Hi, Some of you may know my site: HOWTO: Installing Web Services with Linux / Tomcat / Apache / Struts / Postgresql / Openssl / JDBC I've worked on it a lot and have added many features, including -JDBC/JNDI configuration w/DBCP-commons Pool -build scripts for everything -all the configuration files -Virtual Host configuration -A Struts-based Database Test Web App I am having to move the site, and am now hosting this site here: http://www.linuxjava.net/howto/webapp/ I'm including my README file for people's perusal. Please visit the site for more info. README -- These files can all be downloaded with the one link: -webapp_files.tar I recommend doing things in this order. Install Java -java_install.sh Install Ant -ant_install.sh Install OpenSSL. It needs to be installed before Apache. -openssl_install.sh Install Apache. Pretty straight-forward. Builds a few modules, not all or most, just fairly common ones. Add more modules if you want them built here. -http_install.sh Install Tomcat4 -tomcat_setup_user.sh -tomcat4_install.sh Install Mod_JK -modjk_install.sh Install Postgres Read these install script. It needs to remove the bison RPM first, but it is commented out, cause I don't wa nt someone to do something to their system that they don't intend. Install in the listed order. -bison_install.sh -postgres_setup_user.sh -postgres_install.sh Install PgAccess -pgaccess_install.sh -pgaccess #Put this in /usr/local/bin/ for easy access Sample Database #Import the testdb.psql into your Postgres DB. This is for the Test DB Struts Web App. -testdb.psql Configuration Scripts: Apache -httpd.conf -ssl.conf Tomcat -workers.properties -server.xml Daemon Scripts for Apache, Tomcat, and Postgres -httpd -tomcatd -postgresqld Struts Web App #Extract and put in /usr/local/tomcat/webapps -strutsdb_webapp.tar.bz2 Once everything is running, you should be able to test the webapp by going to: http://www.myhost.mydomain/mydomain_public/ It will also be available here: http://www.myhost.mydomain:8080/mydomain_public/ There is also a JSP file called showJNDI.jsp that will give you some info about your setup. Delete that file for anything in production as it will display your database configuration. -- Please visit the site and any feedback is appreciated. Regards, Oscar Carrillo http://www.linuxjava.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HOST - DNS setup
I'm not sure what you are after. But... You could put Apache in front of Tomcat. Have Apache mount the appropriate Tomcat apps so that you would be able to type in. http://mycompany.com/firstapp Or you could setup a Virtual Host for each time you wanted to do: http://firstapp.mycompany.com/ It may not be that much different but it does mean you don't have to touch Tomcat configuration when deploying, just Apache. Oscar On Thu, 29 Jan 2004, Kal Govindu wrote: Hi all, Our company has just started into Java based web applications. Our current methodology for deploying to production is to setup a DNS like say firstapp.mycompany.com and define a Host entry in the server.xml with aliases to respond to the new DNS. We do this purely for the capability of typing http://firstapp.mycompany.com in a web browser and getting to the application. But this is kind of cumbersome and time consuming setup when ever we deploy to production. As we have more applications this way we will end up with several Host's which does not seem like a good thing. Is there a better way to do this? Please help. Thanks Kal - 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: Conflict openssl versus keytool
Why do you need to import the key into Tomcat? You are using Apache for a front-end w/connector I assume, which means Apache would do the SSL stuff. Oscar On Fri, 23 Jan 2004, Ignacio Barrancos Martinez wrote: Hi all, I am running two web servers on the same Linux machine. 1) is running Apache 1.3.19 and, 2) Jakarta-Tomcat-4.0.5. I have been able to successfully import and configure a Digital Certificate from Verisign into the Apache web server. When I attempt to import the Digital Certificate into the keystore for Tomcat I receive the following error message: keytool error: java.lang.Exception: Public keys in reply and keystore don't match Here are the steps that I have been following: To generate the original csar: # openssl req -new -nodes -keyout private.key -out public.csr # openssl rsa -in private.key -des3 -out secureprivate.key To import the file into Tomcat I did the following: # keytool -genkey -alias tomcat -keyalg RSA (This created the keystore in the home directory) # keytool -import -alias root -keystore .keystore \-trustcacerts -file /etc/httpd/ssl.crt/intermediate.crt (The chain certificate from Verisign) # keytool -import -alias tomcat -keystore .keystore -trustcacerts -file /etc/httpd/ssl.crt/server.crt Enter keystore password: changeit QUESTIONS: == 1) Is there a way to import this CAcertificate into a keystore that was generated using keytool, when the original CSR was generated using OpenSSL? 2) Can i import RSA key generated with openSSL, into a new keystore made with keytool? I want to import the server.crt (signed from Verisign) to my keystore using keytool. - I have read http://marc.theaimsgroup.com/?l=tomcat-userm=106293430225790w=2 and i have done all the steps until Step 11. Using IExplorer 6 (windows XP SP1) going to jakarta's app url, the browser Can't find the site, and in the bottom of the page shows little message: Can't find the name server in DNS (without error number), but the same URL using Mozilla shows validate Certificate window. Thanks in advance, Ignacio Barrancos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: long startup time with JDK1.4
What Linux distribution are you running? And are you running the Sun 1.4 JVM? Oscar On Wed, 21 Jan 2004, Roland Knor wrote: FYI... This didn't work either. In the meantime I figured out, that the time is spent in the PlainSocket.initProt function just before binding to the port, which probably is Java/Linux-Version Problem. I am going to upgrade my linux-Version and hopefully get this fixed -Ursprüngliche Nachricht- Von: David Ramsey [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 20. Jänner 2004 18:02 An: Tomcat Users List Betreff: Re: long startup time with JDK1.4 I would remove your application from Tomcat and observe the startup times with only the shipped example applications loaded. In other words, be sure that Tomcat is at fault here and not your own application. __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - 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: Calling a JSP from a virtual host
To follow up here, I setup Virtual Hosts in Apache and have each Virtual Host have it's own webapp. I also tried it so that each Virtual Host uses the same webapp. In addition, I setup https (cannot do virtual hosts for https), and it has it's own webapp. It sort of works like virtual hosts in that connecting to https://www.domain1.com and https://www.domain2.com each connects to the same webapp. It should pretty much work like I put on my website, but I'm going thru it and soon putting up a more accurate account. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Thu, 15 Jan 2004, Oscar Carrillo wrote: I've only setup one Virtual Host. Tomorrow I'm setting up multiple, so I'll let you know how it goes and provide the configuration. I understand that you're wanting a different webapp for each virtual host. Oscar On Thu, 15 Jan 2004, Dolores García-Izquierdo Jaén wrote: Hi, Thank you guys for your answers. Oscar, I followed the instructions in your HOWTO but it didn't work. I'm not sure if I made myself clear yesterday explaining my problem. What I want to do is to have, for each virtual host in Apache, its respective web application in Tomcat so as I can isolate the JSP code for every Apache domain inside its own Tomcat application. Right now I can only access the JSP pages from one of the virtual hosts, the first one, the default one. If I want to access from any other virtual host (let's say from www.anyVirtualHost.com) I must use http://www.defaultVirtualHost.com/anyTomcatApp/myJspPage.jsp instead of http://www.anyVirtualHost.com/anyTomcatApp/myJspPage.jsp Any help would be appreciated. Thanks again, Dolores -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Wednesday, 14 January, 2004 22:50 To: Tomcat Users List Subject: Re: Calling a JSP from a virtual host Hi, I believe you need to do the jkmounts in each VirtualHost config in httpd.conf. And, I think, you must not use the auto-generated mod_jk.conf. It should work as explained in my HOWTO: http://daydream.stanford.edu/tomcat/install_web_services.html Eventhough, I reference Linux, Tomcat and Apache configuration should be the same, I presume. Oscar On Wed, 14 Jan 2004, Dolores García-Izquierdo Jaén wrote: Hi everyone. I have the next configuration in my server: - Windows 2000 - sorry, no chance to use Linux :-( - Apache 2, with some virtual hosts - Tomcat 1.4, with some JSP webapps - mod_jk, to communicate Apache and Tomcat. I have the whole static code in Apache, and the JSP code in Tomcat. Everything works fine, but I think there is something that it's not going as it should. I'll explain it: Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary one, the default one), myvirtualhost2 and myvirtualhost3, and a copy of index.html and index.jsp pages is inside each of those applications. http://www.myvirtualhost1.com/index.html -- shows ok http://www.myvirtualhost2.com/index.html -- shows ok http://www.myvirtualhost3.com/index.html -- shows ok And I have 1 webapp defined in Tomcat, myWebapp: http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok The problem comes here, as I can only call a JSP page through the default website in Apache: http://www.myvirtualhost2.com/myWebapp/index.jsp or http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find the page). The only thing that works is http://www.myvirtualhost1.com/myWebapp/index.jsp Is it possible to make this work? How can I call any JSP page in Tomcat from any of my virtual hosts in Apache? I've looked for information all over the Internet and the archives of this mailing list, but I couldn't find any solution (found one but it's only valid for mod_jk2 - it didn't work for mod_jk) Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to write my own startup script, but seems to missed something....
You can take a look at my daemon script if it helps. http://daydream.stanford.edu/tomcat/install_web_services.html#daemons Oscar On Thu, 15 Jan 2004, Johan Bång wrote: Hi! I am trying to write my own init script to tomcat 5 for Fedora Core 1 I have tryed to decode what the startup.sh, catalina.sh and setclasspath.sh is doing, and I think that I have figured out some of it, but according to catalina.out it isn't enought. Could someone who knows how tomcat is support to start please tell me what I hacve done wrong? I get this error message when I tries to start Tomcat: Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap My .conf file, witch is supposed to set the nessesary env variables looks someting like this: # Where the tomcat installations lives. CATALINA_HOME=/home/johan/download/tomcat CATALINA_BASE=/home/johan/download/tomcat CATALINA_TMPDIR=/home/johan/download/tomcat/tmp # Tomcat options. These are passed to Tomcat as-is. CATALINA_OPTS= # Java settings. If you use Sun's JDK, you might want to add -server here. JAVA_HOME=/usr/java/j2sdk1.4.2_03 JAVA_OPTS=-server # Classpath settings. You migth add your custom classes here. CLASSPATH= And the part of the init script, where the magic is suppose to happend: # Get tomcat config options . /etc/tomcat.conf # Functions start() { echo -n Starting tomcat: # Adding stuff to classpath CLASSPATH=$JAVA_HOME/lib/tools.jar CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/commons-logging-api.jar JAVA_ENDORSED_DIRS=$CATALINA_HOME/common/endorsed # Starting Tomcat $JAVA_HOME/bin/java $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \ org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 echo $! $CATALINA_PID retun $RETVAL } Regards Johan - 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: Calling a JSP from a virtual host
I've only setup one Virtual Host. Tomorrow I'm setting up multiple, so I'll let you know how it goes and provide the configuration. I understand that you're wanting a different webapp for each virtual host. Oscar On Thu, 15 Jan 2004, Dolores García-Izquierdo Jaén wrote: Hi, Thank you guys for your answers. Oscar, I followed the instructions in your HOWTO but it didn't work. I'm not sure if I made myself clear yesterday explaining my problem. What I want to do is to have, for each virtual host in Apache, its respective web application in Tomcat so as I can isolate the JSP code for every Apache domain inside its own Tomcat application. Right now I can only access the JSP pages from one of the virtual hosts, the first one, the default one. If I want to access from any other virtual host (let's say from www.anyVirtualHost.com) I must use http://www.defaultVirtualHost.com/anyTomcatApp/myJspPage.jsp instead of http://www.anyVirtualHost.com/anyTomcatApp/myJspPage.jsp Any help would be appreciated. Thanks again, Dolores -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Wednesday, 14 January, 2004 22:50 To: Tomcat Users List Subject: Re: Calling a JSP from a virtual host Hi, I believe you need to do the jkmounts in each VirtualHost config in httpd.conf. And, I think, you must not use the auto-generated mod_jk.conf. It should work as explained in my HOWTO: http://daydream.stanford.edu/tomcat/install_web_services.html Eventhough, I reference Linux, Tomcat and Apache configuration should be the same, I presume. Oscar On Wed, 14 Jan 2004, Dolores García-Izquierdo Jaén wrote: Hi everyone. I have the next configuration in my server: - Windows 2000 - sorry, no chance to use Linux :-( - Apache 2, with some virtual hosts - Tomcat 1.4, with some JSP webapps - mod_jk, to communicate Apache and Tomcat. I have the whole static code in Apache, and the JSP code in Tomcat. Everything works fine, but I think there is something that it's not going as it should. I'll explain it: Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary one, the default one), myvirtualhost2 and myvirtualhost3, and a copy of index.html and index.jsp pages is inside each of those applications. http://www.myvirtualhost1.com/index.html -- shows ok http://www.myvirtualhost2.com/index.html -- shows ok http://www.myvirtualhost3.com/index.html -- shows ok And I have 1 webapp defined in Tomcat, myWebapp: http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok The problem comes here, as I can only call a JSP page through the default website in Apache: http://www.myvirtualhost2.com/myWebapp/index.jsp or http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find the page). The only thing that works is http://www.myvirtualhost1.com/myWebapp/index.jsp Is it possible to make this work? How can I call any JSP page in Tomcat from any of my virtual hosts in Apache? I've looked for information all over the Internet and the archives of this mailing list, but I couldn't find any solution (found one but it's only valid for mod_jk2 - it didn't work for mod_jk) Thanks in advance - 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: Signal 11 crash and mod_jk, mod_jk2, apache2
I thought later about mentioning this, and that's exactly right. I always use the free memtest86 http://memtest86.com to test the memory sub-system before deploying. Sometimes I turn down the FSB and the memory bus speed, makes the crashes go away. Oscar On Thu, 15 Jan 2004, Christopher Schultz wrote: All, With RH8, I assume that at the very least you'll need to set LD_KERNEL_ASSUME. I would consider that the first course of action, and likely would not need to do anything else. I could see hyperthreading a problem if the kernel didn't support it very well. You could try the latest 2.4.x kernel. If the LD_ASSUME_KERNEL doesn't help, try disabling both SMP and hyperthreading at the same time. I think that's your next most likely fix. Just a note: I've had big, beefy servers die with SIG11 on Linux before (or course, that was back when a dual athlon 1GHz was considered 'beefy' :). Anyway, we tried everything, including hiring BEA consultants for a bazillion dollars per hour to help us tune both Weblogic and our VM. It turned out to be bad hardware. We had six identical machines and two of 'em kept crapping out. They just sucked. The only solution was to send them back to the manufacturer and ask for more. It turns out that not only did those two (production!) machines suck, but two QA machines and one dev machine (all the same) sucked, too. They all died when we put them under high load. They seemed to do okay under development load (about zero). I'll never buy a machine from Penguin Computing again. Just wanted to mention that sometimes it's not the software's fault. Do you have other similar machines that you can try this on? -chris - 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: Signal 11 crash and mod_jk, mod_jk2, apache2
With RH8, I assume that at the very least you'll need to set LD_KERNEL_ASSUME. I would consider that the first course of action, and likely would not need to do anything else. I could see hyperthreading a problem if the kernel didn't support it very well. You could try the latest 2.4.x kernel. Oscar On Wed, 14 Jan 2004, Peter Burkholder wrote: I've seen similar threads but not a resolution, so I'll raise this issue again. I'm moving our web server and web apps to a new machine, a dual Xeon Redhat 8 box. Tomcat 5.0.16 and Tomcat 4.1.29 both handle loads well when using the Tomcat HTTP server. But I need to connect Tomcat to an Apache front-end, currently 2.0.28. When I use either mod_jk or mod_jk2, the JVM crashes after 1970-1980 requests with Signal 11 and this in logs/catalina.out: JVMDG217: Dump Handler is Processing a Signal - Please Wait. JVMDG303: JVM Requesting Java core file JVMDG304: Java core file written to /ucar/dpc/aegean/www/web/www.dlese.org/tomcat/javacore.20040113.142044.6635.txt JVMDG215: Dump Handler has Processed Exception Signal 11. and this exception in the java core: 2XMEXCPINFOJVM Exception 0x2 (subcode 0x0) occurred in thread TP-Processor9 (TID:0x10174AB8) I've seen suggested avenues like: # kernel rebuilds (some 2.4.18-2.4.2? kernels had bad thread handling) # switching JVMs, e.g., Sun, IBM, BEA JRockit # cleaning out the work directory, # using or not using LD_ASSUME_KERNEL, # disabling hyperthreading, # disabling SMP, # adjusting heap and stack sizes # rebuilding the mod_jk or mod_jk2 connectores. # expanding user ulimits That makes for a huge matrix of possibilities. Any hints on which paths might be more fruitful, or others to consider. Are more data needed to help isolate this problem? Thanks, Peter MISC DETAILS: Kernel: Redhat 2.4.20-27.8smp JVM: IBMJava2-141 glibc Version: 2.3.2 Memory: 2Gb JVM Memory: Behavior is the same with either -Xms250m or -Xms512m 2 CPUS /w hyperthreading looks like 4 CPUs CORE EXCERPTS: 1HPUSERLIMITS User Limits (in bytes except for NOFILE and NPROC) - NULL --- 2HPUSERLIMIT RLIMIT_FSIZE : infinity 2HPUSERLIMIT RLIMIT_DATA: infinity 2HPUSERLIMIT RLIMIT_STACK : 2093056 2HPUSERLIMIT RLIMIT_CORE: 0 2HPUSERLIMIT RLIMIT_NOFILE : 1024 2HPUSERLIMIT RLIMIT_NPROC : 7168 2HPENVVAR IBM_JAVA_COMMAND_LINE=/opt/java/java/bin/java -Xmx512m -Djava.end orsed.dirs=/opt/tomcat/tomcat4.1/common/endorsed -classpath /opt/java/java/lib/t ools.jar:/opt/tomcat/tomcat4.1/bin/bootstrap.jar -Dcatalina.base=/www/web//www.d lese.org/tomcat -Dcatalina.home=/opt/tomcat/tomcat4.1 -Djava.io.tmpdir=/www/web/ /www.dlese.org/tomcat/temp org.apache.catalina.startup.Bootstrap -config /www/we b//www.dlese.org/tomcat/conf/dds.xml start -- Peter Burkholder, System Administrator Digital Library for Earth System Education (DLESE® -- http://www.dlese.org) [EMAIL PROTECTED] DLESE Program Center (DPC) ~~~ ~~ __o UCAR/DPC, P.O. Box 3000 Ph) +1-303-497-2663 ~~~ ~~_`\,_ Boulder, CO 80307-3000Fx) +1 303-497-8336 ~~~ (*)/ (*) - 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]
Redhat9 / mod_jk2 builds from source
Hi, The info I've seen on this list about building mod_jk2 has been for rpm installation. Here's the info I gathered so far trying to do Apache and the connector all from source. Building Apache2.0.48 and mod_jk2 (2.0.2) works seamlessly the following way: If you built Apache from source, such as in my HOWTO: http://daydream.stanford.edu/tomcat/install_web_services.html this will build mod_jk2 from source. I haven't tested the connector yet, but no edits to the Makefile were required to build mod_jk2.so. I used this configuration script and make command in: tomcat-connector-source-dir/native2 ./configure --with-java-home=/usr/local/java/java --with-java-platform=2 --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/local/jakarta-tomcat-5.0.16 --with-jni --with-apr-lib=/usr/local/apache2/lib --with-apr-include=/usr/local/apache2/include --with-pcre make all Then jkjni.so and mod_jk2.so will be in: tomcat-connector-source-dir/jk/build/jk2/apache2 Hope that helps someone. BTW, trying do it with the ant build seemed hopeless. I quickly abandoned that method. Oscar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redhat9 / mod_jk2 builds from source
My apologies, I did find some good info on the list just awhile back, particularly by Mark Eggers. This just mostly shows it indeed is repeatable :-) Oscar On Wed, 14 Jan 2004, Oscar Carrillo wrote: Hi, The info I've seen on this list about building mod_jk2 has been for rpm installation. Here's the info I gathered so far trying to do Apache and the connector all from source. Building Apache2.0.48 and mod_jk2 (2.0.2) works seamlessly the following way: If you built Apache from source, such as in my HOWTO: http://daydream.stanford.edu/tomcat/install_web_services.html this will build mod_jk2 from source. I haven't tested the connector yet, but no edits to the Makefile were required to build mod_jk2.so. I used this configuration script and make command in: tomcat-connector-source-dir/native2 ./configure --with-java-home=/usr/local/java/java --with-java-platform=2 --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/local/jakarta-tomcat-5.0.16 --with-jni --with-apr-lib=/usr/local/apache2/lib --with-apr-include=/usr/local/apache2/include --with-pcre make all Then jkjni.so and mod_jk2.so will be in: tomcat-connector-source-dir/jk/build/jk2/apache2 Hope that helps someone. BTW, trying do it with the ant build seemed hopeless. I quickly abandoned that method. Oscar - 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: RTFM
That should've been RTFP. P=Post Doesn't that just require a hyperlink? If you wanted to from your web page to google, you'd just have a hyperlink that goes http://www.google.com/; Unless you mean something different, that question begs the question: Have you used a web browser before? ;-) Oscar On Wed, 14 Jan 2004, Jerald Powel wrote: Hi, Now I have your attention, will someone tell me if it is possible to forward control (either by JSP or Servlet) from one context to another, in the same browser window? i.e: forward from http://locahost:8080/app1/... to http://locahost:8080/app2/... in the same window (IE). It is either so glaringly obvious that no one deems an answer worthwhile (RTFM), or so really really difficult, and no one knows how do this. Surely not. Either way I need to know. A yes or no will suffice, is it possible? If it is, any further direction after that is of course appreciated! Gerald. P.S I am using Apache Tomcat 4.0.6, and have found no doco on this - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redhat9 / mod_jk2 builds from source
Cool. Questions inside. On Wed, 14 Jan 2004, Mark Eggers wrote: Oscar, Not a problem :-) I do have some additions to my original post. The changes get UNIX sockets working as well as IP sockets. Set the following environment variables: export LDFLAGS=-lgdbm -lldap -lexpat -ldb What's this need for? If it compiles, does that mean it's not necessary? export CPPFLAGS=-I/usr/kerberos/include -I/usr/openssl/include Is this only neccessary if you want to do a secure mod_jk2 connection to a separate machine running tomcat? (all on one line for the second command). Use the appropriate command for the shell you're in. Tell configure about OS-specific files for Java JNI. For linux and the Sun JVM, the files are located in include/linux underneath $JAVA_HOME. The configure command for mod_jk2 is then: ./configure --with-apxs2=/home/apache/bin/apxs \ --with-tomcat41=/home/tomcat \ --with-os-type=include/linux \ --with-jni \ --with-pcre I originally tried that --with-os-type=include/linux but it gave an error. It recognized that it was in a Linux environment so it seemed unnecessary. Finally, modify the JK_LDFLAGS line in server/apache2/Makefile to include libaprutil. It will read: JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre -lpcreposix -laprutil-0 (again on one line). Run make, and the resulting mod_jk2.so / jkjni.so will support both IP socketes and UNIX sockets. In-process communication will probably have to wait until a new MPM module is out for Apache. The missing aprutil-0 library is probably due to an autoconf / configure issue. The developers (according to folks on this mailing list) have decided to use the Apache apr interfaces, but have not finished updating the configure scripts. This is really apparent if you try to build the connectors from the current CVS. What does aprutil-0 provide? Thanks, Oscar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calling a JSP from a virtual host
Hi, I believe you need to do the jkmounts in each VirtualHost config in httpd.conf. And, I think, you must not use the auto-generated mod_jk.conf. It should work as explained in my HOWTO: http://daydream.stanford.edu/tomcat/install_web_services.html Eventhough, I reference Linux, Tomcat and Apache configuration should be the same, I presume. Oscar On Wed, 14 Jan 2004, Dolores García-Izquierdo Jaén wrote: Hi everyone. I have the next configuration in my server: - Windows 2000 - sorry, no chance to use Linux :-( - Apache 2, with some virtual hosts - Tomcat 1.4, with some JSP webapps - mod_jk, to communicate Apache and Tomcat. I have the whole static code in Apache, and the JSP code in Tomcat. Everything works fine, but I think there is something that it's not going as it should. I'll explain it: Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary one, the default one), myvirtualhost2 and myvirtualhost3, and a copy of index.html and index.jsp pages is inside each of those applications. http://www.myvirtualhost1.com/index.html -- shows ok http://www.myvirtualhost2.com/index.html -- shows ok http://www.myvirtualhost3.com/index.html -- shows ok And I have 1 webapp defined in Tomcat, myWebapp: http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok The problem comes here, as I can only call a JSP page through the default website in Apache: http://www.myvirtualhost2.com/myWebapp/index.jsp or http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find the page). The only thing that works is http://www.myvirtualhost1.com/myWebapp/index.jsp Is it possible to make this work? How can I call any JSP page in Tomcat from any of my virtual hosts in Apache? I've looked for information all over the Internet and the archives of this mailing list, but I couldn't find any solution (found one but it's only valid for mod_jk2 - it didn't work for mod_jk) Thanks in advance - 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: Calling a JSP from a virtual host
I assumed he meant he wanted to access the same webapp in Tomcat in each virtual host in Apache. In that case, he only wants and only needs 1 webapp in Tomcat. Oscar On Wed, 14 Jan 2004, Howard Watson wrote: I not 100% sure but I think the problem might be here: And I have 1 webapp defined in Tomcat [EMAIL PROTECTED] 01/14/04 03:48PM Hi everyone. I have the next configuration in my server: - Windows 2000 - sorry, no chance to use Linux :-( - Apache 2, with some virtual hosts - Tomcat 1.4, with some JSP webapps - mod_jk, to communicate Apache and Tomcat. I have the whole static code in Apache, and the JSP code in Tomcat. Everything works fine, but I think there is something that it's not going as it should. I'll explain it: Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary one, the default one), myvirtualhost2 and myvirtualhost3, and a copy of index.html and index.jsp pages is inside each of those applications. http://www.myvirtualhost1.com/index.html -- shows ok http://www.myvirtualhost2.com/index.html -- shows ok http://www.myvirtualhost3.com/index.html -- shows ok And I have 1 webapp defined in Tomcat, myWebapp: http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok The problem comes here, as I can only call a JSP page through the default website in Apache: http://www.myvirtualhost2.com/myWebapp/index.jsp or http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find the page). The only thing that works is http://www.myvirtualhost1.com/myWebapp/index.jsp Is it possible to make this work? How can I call any JSP page in Tomcat from any of my virtual hosts in Apache? I've looked for information all over the Internet and the archives of this mailing list, but I couldn't find any solution (found one but it's only valid for mod_jk2 - it didn't work for mod_jk) Thanks in advance - 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: Calling a JSP from a virtual host
Sorry, don't have any experiences with those. I'm no expert in Tomcat, I just get lucky once in awhile and see a question I can answer :) Oscar On Wed, 14 Jan 2004, Howard Watson wrote: I stand corrected. I don't know about the auto-generated mod_jk.conf, but your right about needing to mount the JSPs and servlets in each virtual host. And probably any matching aliases. Thanks for clearing up the confusion. Do you know any good references for using LogSetter within a Tomcat3.3 Context? If you do I'd like to hear about it? [EMAIL PROTECTED] 01/14/04 03:27PM I assumed he meant he wanted to access the same webapp in Tomcat in each virtual host in Apache. In that case, he only wants and only needs 1 webapp in Tomcat. Oscar On Wed, 14 Jan 2004, Howard Watson wrote: I not 100% sure but I think the problem might be here: And I have 1 webapp defined in Tomcat [EMAIL PROTECTED] 01/14/04 03:48PM Hi everyone. I have the next configuration in my server: - Windows 2000 - sorry, no chance to use Linux :-( - Apache 2, with some virtual hosts - Tomcat 1.4, with some JSP webapps - mod_jk, to communicate Apache and Tomcat. I have the whole static code in Apache, and the JSP code in Tomcat. Everything works fine, but I think there is something that it's not going as it should. I'll explain it: Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary one, the default one), myvirtualhost2 and myvirtualhost3, and a copy of index.html and index.jsp pages is inside each of those applications. http://www.myvirtualhost1.com/index.html -- shows ok http://www.myvirtualhost2.com/index.html -- shows ok http://www.myvirtualhost3.com/index.html -- shows ok And I have 1 webapp defined in Tomcat, myWebapp: http://www.myvirtualhost1.com/myWebapp/index.jsp -- shows ok The problem comes here, as I can only call a JSP page through the default website in Apache: http://www.myvirtualhost2.com/myWebapp/index.jsp or http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find the page). The only thing that works is http://www.myvirtualhost1.com/myWebapp/index.jsp Is it possible to make this work? How can I call any JSP page in Tomcat from any of my virtual hosts in Apache? I've looked for information all over the Internet and the archives of this mailing list, but I couldn't find any solution (found one but it's only valid for mod_jk2 - it didn't work for mod_jk) Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redhat9 / mod_jk2 builds from source
Interesting... I only get this with apache 2.0.48 from ldd /usr/local/apache2/lib/libapr-0.so.9.5: libc.so.6 = /lib/tls/libc.so.6(0x4200) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000) I guess that means I didn't build with the LD_FLAGS that you mentioned. The include-os-type=include/linux would give me an error in configure. I imagine that was because there was no directory in the mod_jk2 directory for that. Is that something that's only available with the CVS version? Anyways, thanks for the info and good luck finding employment. I'm gonna go ahead and try what I've got and report back to the list to see if it all works. Oscar On Wed, 14 Jan 2004, Mark Eggers wrote: Oscar, This is all pretty much in a bug I posted to on naygoya.apache.org (#17762). If you build Apache with all shared modules, then there are some dependencies in apr and aprutil. An ldd from 2.0.46 on Redhat 9 (2.4.20-9) shows the following: ldd /home/apache/lib/libapr-0.so.0.9.4 libdb-4.0.so = /lib/libdb-4.0.so libgdbm.so.2 = /usr/lib/libgdbm.so.2 libldap.so.2 = /usr/lib/libldap.so.2 libexpat.so.0 = /usr/lib/libexpat.so.0 libc.so.6 = /lib/tls/libc.so.6 libpthread.so.0 = /lib/tls/libpthread.so.0 libsasl.so.7 = /usr/lib/libsasl.so.7 libssl.so.4 = /lib/libssl.so.4 libcrypto.so.4 = /lib/libcrypto.so.4 liblber.so.2 = /usr/lib/liblber.so.2 /lib/ld-linux.so.2 = /lib/ld-linux.so.2 libdl.so.2 = /lib/libdl.so.2 libcrypt.so.1 = /lib/libcrypt.so.1 libpam.so.0 = /lib/libpam.so.0 libresolv.so.2 = /lib/libresolv.so.2 libgssapi_krb5.so.2 = /usr/kerberos/lib/libgssapi_krb5.so.2 libkrb5.so.3 = /usr/kerberos/lib/libkrb5.so.3 libk5crypto.so.3 = /usr/kerberos/lib/libk5crypto.so.3 libcom_err.so.3 = /usr/kerberos/lib/libcom_err.so.3 libz.so.1 = /usr/lib/libz.so.1 ldd /home/apache/lib/libaprutil-0.so.0.9.4 libdb-4.0.so = /lib/libdb-4.0.so libgdbm.so.2 = /usr/lib/libgdbm.so.2 libldap.so.2 = /usr/lib/libldap.so.2 libexpat.so.0 = /usr/lib/libexpat.so.0 libc.so.6 = /lib/tls/libc.so.6 libpthread.so.0 = /lib/tls/libpthread.so.0 libsasl.so.7 = /usr/lib/libsasl.so.7 libssl.so.4 = /lib/libssl.so.4 libcrypto.so.4 = /lib/libcrypto.so.4 liblber.so.2 = /usr/lib/liblber.so.2 /lib/ld-linux.so.2 = /lib/ld-linux.so.2 libdl.so.2 = /lib/libdl.so.2 libcrypt.so.1 = /lib/libcrypt.so.1 libpam.so.0 = /lib/libpam.so.0 libresolv.so.2 = /lib/libresolv.so.2 libgssapi_krb5.so.2 = /usr/kerberos/lib/libgssapi_krb5.so.2 libkrb5.so.3 = /usr/kerberos/lib/libkrb5.so.3 libk5crypto.so.3 = /usr/kerberos/lib/libk5crypto.so.3 libcom_err.so.3 = /usr/kerberos/lib/libcom_err.so.3 libz.so.1 = /usr/lib/libz.so.1 So I guess strictly speaking if you build libapr and libaprutil with the appropriate LDFLAGS, you should not need them to build mod_jk2.so and jkjni.so. I found if you don't use --with-os-type=include/linux in your configure command, UNIX sockets (jkjni.so) will fail with the following error: INFO: APR not loaded, disabling jni components: java.io.IOException: initialize Exception during startup processing . . . . . Caused by: java.lang.UnsatisfiedLinkError: getJkEnv at org.apache.jk.apr.AprImpl.getJkEnv(Native Method) About the environment variables . . . I think that if you get libapr and libaprutil built with the listed environment variables you should not need them when building mod_jk2.so and jkjni.so. Messier details are probably better discussed by the developers who know the internals of this code. I'm just beginning to look at it for the following reasons: 1. Submit a patch for autoconf to get the right configure script built. 2. Look at a new MPM module in Apache for Linux and the new thread model that will support in-process communication. When I get to it I don't know since most of my time is spent looking for employment. HTH /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat / Apache / SSl
You will use the same connector over port 8009. No additional connector needed over any other port. In your ssl.conf for apache, you will create a VirtualHost entry very much like the one that's in your httpd.conf file. In there you will do your JkMount declaratives, etc. BTW, I use 0.9.7c openssl because that one is patched for a vulnearability. Just thought I'd mention it eventhough you list yours as Nov 4, which probably means the patch was backported. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Tue, 13 Jan 2004 [EMAIL PROTECTED] wrote: Software: Apache - 2.0.48 Tomcat - 4.1.29 OpenSSL - 0.9.6l [engine] 04 Nov 2003 Hi, I am trying to encrypt all data being transmitted from the client pc to the webserver, and also from the webserver to tomcat. I have only been working on tomcat for a couple of months but have experience on WebSphere. I have enabled ssl on both apache and on tomcat, and both are accessible directly: apache: https://host tomcat: https://host:8443 When I try set up a connector from apache to tomcat using port 8443 i get an Internal Server Error and the follwoing errors in the mod_jk log: [jk_ajp_common.c (661)]: In jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 16 [jk_ajp_common.c (693)]: sending to ajp13 #358 [jk_ajp_common.c (966)]: ajp_send_request 2: request body to send 0 - request body to resend 0 [jk_ajp_common.c (755)]: ajp_connection_tcp_get_message: Error - Wrong message format 0x1503 [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop. err=2 [jk_ajp_common.c (1318)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. Failed errno = 0 [jk_ajp_common.c (1529)]: Into jk_endpoint_t::done, closing connection 0 [jk_ajp_common.c (605)]: In jk_endpoint_t::ajp_close_endpoint Apache to Tomcat using the ajp13 connector over port 8009 works fine but I have a requirement to encrypt all data. Any ideas? Thanks, John Configs: --- Tomcat configs ## server.xml ... Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=true protocol=TLS / /Connector ... ## workers.properties workers.tomcat_home=/usr/jakarta-tomcat-4.1.29/ workers.java_home=/usr/java/j2sdk1.4.1_03/bin/java ps=/ worker.list=bob worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=bob worker.bob.port=8443 worker.bob.host=10.0.0.10 worker.bob.type=ajp13 worker.bob.lbfactor=1 --- Apache configs ## httpd.conf ... LoadModule jk_module modules/mod_jk.so JkWorkersFile /usr/jakarta-tomcat-4.1.29/conf/workers.properties JkLogFile /usr/httpd-2.0.48/logs/mod_jk-log JkLogLevel debug JkMount / bob JkMount /* bob ... - 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: port info
The other quick and dirty solution someone posted a little while back, is to re-route traffic on port 80 (in this case) to port 8081 with your firewall. In Linux, using iptables you can easily do this. Oscar On Mon, 12 Jan 2004, Ro, Jean S wrote: Hi, I use the following url: http://mydomainname.com:8081/mywebapp/ But I don't want the user to see the port information so I want to remove it from url: http://mydomainname.com/mywebapp/ How do I do that? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.29 versus Tomcat 5
I'm going ahead and trying it out. But I have a different question. Are all the config files the same between Tomcat4 and Tomcat5? If they are the same, then it sounds trivial to at least try it out. If not, then it would be painful to have to upgrade, and move back to tomcat4, if need be. Oscar On Mon, 12 Jan 2004, Daniel Gibby wrote: Sorry about that last reply that had no message body.. Anyway, what about reliability, do you people who use the later versions of 5.0.x find it as reliable as 4.1.x? Thanks, Daniel Gibby Remy Maucherat wrote: Daniel Gibby wrote: Does anyone have a synopsis of reasons to move to or not to move to Tomcat 5 from tomcat 4? I've seen various reasons that moving will be beneficial, including better session-replication support, and manager application improvements, but how does 5.0 stand up as far as reliability is concerned? I'm usually a little gun-shy at upgrading to anything until most of the bugs are worked out. It could cost me thousands of dollars a day to have my web apps be down. First, you have to make sure your webapps run. You never know. Then, TC 5 vs 4.1.29: - is faster and generally more optimized - has nice server monitoring - has plenty of cleanups and small refactorings, to fix some of the more complex 4.1.x bugs - has JSP 2.0 (you may not care, but JSPs are actually nice now) Note: 4.1.29 and 5.0.16 use the same connectors, so reliability of the HTTP (or AJP) handling will be identical. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 standalone on Linux 2.6
I've also been running a development machine with RH9/kernel 2.6.0 using Tomcat 4.1.29/Apache 2.0.48/mod_jk/JDK-1.4.2_03/struts/jdbc-common pool/Postgresql-7.4.1. No real load test yet, but haven't needed to set the LD_KERNEL_ASSUME yet. I'm going to start working with JMeter and see if I can produce some benchmark results against the 2.4 kernel. I'll be putting the setup procedure and benchmark results here: http://daydream.stanford.edu/tomcat/install_web_services.html What was meant by Linux 2.6? Was that Debian or Suse? Oscar Does anyone have stability issues on this platform (without any LD_ASSUME_KERNEL, and with Sun JDK 1.4.2 or similar very recent VM) ? I'm trying to compare with Redhat 9 and see if the troubles also happen with that (cleaner) platform. Bonus question: How's the performance / scalability ? I've been running Linux kernels 2.6.0 on a couple of very lightly loaded Tomcat servers without any issues. This is running on Fedora Core 1 and JDK 1.4.2_01-b06 (which reminds me, I should upgrade that machine to the latest JDK, 1.4.2_03-b02). No LD_ASSUME_KERNEL env vars set. I also have a Redhat 7.3 with kernel 2.6.0 server running Tomcat with JDK 1.4.2_02-b03 with no problems, but again it's a development server so no real load. I haven't done any performance / scalability tests but theoretically it should be a lot better than 2.4 kernels. BTW, I'm not sure what platform you really mean by Linux 2.6 as that isn't a specific platform, but any Linux distribution running a 2.6 kernel. -Dave - 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: Enabling SSL on specific URLs using IIS and Tomcat
This is one of the reasons why I like to use Apache in front of Tomcat. It's pretty easy to do with Apache. Not to mention IIS is a bear to get to work under Linux ;) I would imagine there is a similar config for IIS though. Oscar On Thu, 8 Jan 2004, cprs-develop wrote: Hi: That's what I have been trying to do. If you can recommend any alternate method to allow only https access to secure URLs, I would greatly appreciate it. Thanks, Vic -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:38 PM To: Tomcat Users List Subject: RE: Enabling SSL on specific URLs using IIS and Tomcat Howdy, Almost certainly the ISAPI Redirector's fault, since as you mention Tomcat works fine by itself. What if you only allow https access to secure URLs? Yoav Shapira Millennium ChemInformatics -Original Message- From: cprs-develop [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:33 PM To: [EMAIL PROTECTED] Subject: Enabling SSL on specific URLs using IIS and Tomcat Importance: High Hello All: I am running Apache Tomcat 4.1.27, with IIS 5.0 on Windows 2000 Professional configured to serve the JSP pages using the ISAPI redirector. I have also configured SSL support using the Windows IIS management console. Currently JSP pages can be accessed using the http://SomeHost/SomeDirectory or https://SomeHost/SomeDirectory URL. I am trying to specify URLs that should be available only through SSL. For this, I have added the security-constraint section in web.xml for the relevant webapp directory. web-app . . . . . /welcome-file-list !-- All resources under the /SSL directory should only be available via SSL -- security-constraint web-resource-collection web-resource-nameSSL/web-resource-name url-pattern/SSL/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint /web-app Now, when I try to access the resources under the /SSL directory, (using http or https) IIS gives me a Page not found error message. However, if I disable IIS and run Tomcat independently, directory security is enabled, and everything works fine, i.e., if I use http://SomeHost/webapp/SSL, it automatically redirects to https://SomeHost/webapp/SSL. I found an earlier thread (http://mikal.org/interests/java/tomcat/archive/view?mesg=44502) which mentions that the ISAPI redirector may be to blame, but I am not sure if it applies in this scenario. Any help would be greatly appreciated. Thanks, Vic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat-connectors
Everything I'm sure will work great if you compile apache from source. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Mon, 5 Jan 2004, Shannon Scott wrote: Camron, Thank you for your quick response. I appreciate your effort. When I tried your mod_jk.so file, apache would not start. I got the following error. Starting httpd: httpd: module mod_jk.c is not compatible with this version of Apache (found 20020628, need 20020903). Please contact the vendor for the correct version. Any ideas? What version of apache are you running? Where did you obtain your apache from? I have the httpd files from the fedora rpms. Thank you again. Take Care Shannon -Original Message- From: Camron G. Levanger [mailto:[EMAIL PROTECTED] Sent: Monday, January 05, 2004 10:57 AM To: Tomcat Users List Subject: Re: tomcat-connectors Hi, I emailed you a compiled mod_jk that should work on fedora, if for some reason you do not get the attachment let me know and i will send you a link. Camron G. Levanger The Dreamlab www.dreamlabmedia.com (866) 890-3705 On Jan 5, 2004, at 8:49 AM, Shannon Scott wrote: Greetings, I hope everyone is feeling well in the new year. I recently upgraded a web server from redhat7.2 to the fedora os. The apache was upgraded in the process and now we are running Apache/2.0.47. I have been unable to get a mod_jk or mod_jk2 that will install or compile. I have tried the src files from the apache site found here: http://jakarta.apache.org/site/sourceindex.cgi but I get the following error during the make: jk_connect.c:99:28: apr_network_io.h: No such file or directory ( all the apr rpms for fedora have been installed ). Someone suggested trying the rpms at jpackage.org, so I have also tried all the source and non source rpms from jpackage.org. Does anyone have mod_jk or mod_jk2 working with tomcat 4.x on the fedora os? Any help or insight is greatly appreciated. Take Care Shannon Fedora Core 1 Apache 2.0.47 Tomcat 4.1.24 - 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: Apache2 + Tomcat4 + mod_jk2 success
Thanks. Some of the steps surprised me in missing files, etc. Can anyone else comment on why this would be the case? BTW, you have a reference to /usr/local/apache2/bin/apes, which should probably be /usr/local/apache2/bin/apxs. I'm also surprised that some of your directories say jk, not jk2. Is that correct? Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Sun, 4 Jan 2004, Ian Harwood wrote: Hi Having succeeded in getting jk2_mod to work thought I would document what I did My setup Linux RH9 basic setup, httpd-2.0.48 installed from source NOT RPM, tomcat-4.1.29, ant-1.5.4 The following was setup in /etc/profile JAVA_HOME=/usr/java/java CATALINA_HOME=/usr/local/tomcat PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALI NA_HOME/common/lib/servlet.jar Add the following to the EXPORT line JAVA_HOME CATALINA_HOME CLASSPATH You will need to logout/login or restart to set the environment Install Apache2 from source make sure you enable dynamic loading by adding --enable-so I also like to add --enable-mods-shared=most Ie ./configure --enable-so --enable-mods-shared=most I installed into the default directory (/usr/local/apache2) Install tomcat nothing unusual here I placed mine in /usr/local/jakarta-tomcat-4.1.29 and made a symbolic link from /usr/local/tomcat Test both are working OK then stop both Now for the JK2 connector Download the connector source from CVS this was the only way I could get all the files needed cvs -d :pserver:[EMAIL PROTECTED]:home/cvspublic checkout jakarta-tomcat-connectors This will download all files into a director jakata-tomcat-connectors below the current directory This brings down all connectors the one we need is in jakata-tomcat-connectors/jk/native2 Have a read of the readme.txt file from this we can see we need to download 2 more files (APR, APR-UTILS) the locations are given I placed mine in /jakata-tomcat-connectors/jk/native2/apr Run buildconf ./buildconf Before we can go further we have to modify two of the source files jk_channel_socket.c and jk_pool.c Both the files are in jk/native2/common Jk_channel_socket.c find #error jk_channel_socket is deprecated line74 just after copyright notice Remove this line Jk_pool.c find #error jk_pool is deprecated line64 just after copyright notice Remove this line Run configure We need to add some parameters to configure: ./configure --with-apxs2=/usr/local/apache2/bin/apes --with-tomcat41=/usr/local/tomcat --with-java-home=/usr/java/java --with-jni Change all paths to suit your system Hopefully all will go well Run Make ./make At the end of make you will see a message about running libtools for me it was Libtool --finish /usr/local/apache2/modules This did not work for me I just copied mod_jk2.so from /jk/build/jk2/apache2 to /usr/local/apache2/modules And libjkjni.so to /usr/local/tomcat/server/lib Make sure apache and tomcat are not running File jk2.properties /usr/local/tomcat/conf/jk2.properties handler.list=channelSocket,request channelSocket.port=8009 channelSocket.address=127.0.0.1 File httpd.conf /usr/local/apache2/conf/httpd.conf Add LoadModule jk2_module modules/mod_jk2.so File workers2.properties /usr/local/apache2/conf/workers2.properties [shm] file=/usr/local/apache2/logs/jk2.shm size=1048576 debug=0 Disabled=0 [channel.socket:localhost:8009] [status:status] [uri:/jkstatus/*] group=status:status [uri:/examples/*] Info=map the entire examples webapp Debug=0 [uri:/tomcat-docs/*] You will need to add uri for all the webapps you use OK time to test all this Start tomcat first can be a bit slow to start give a little time Start apache2 Goto http://localhost you should get default apache2 goto http://localhost:8080 you should get default tomcat page Goto http://localhost/examples you should get tomcat directory listing if so all done I hope this works for you I have not tested this greatly so may still be thinks missing Ian - 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: Linux Kernel 2.6.0 success
There are advancements that may prove beneficial. It should be much better in handling threads. From what I remember, orders of magnitude better. I think hundreds of thousands of threads can now be handled nicely. I imagine that this would translate into better handling of multiple connections to Apache and Tomcat. If I remember correctly, this is due to the new O1 scheculer. Also, memory handling is supposed to be much improved. Handling of multiple processors is supposed to be much improved so that should translate into a better server in all respects. It's also a better desktop environment too, because it handles multiple processes much better so it feels more responsive to the user. I can vouch for this, as I can burn a DVD and play a FPS game under wine without noticing. I'm not planning on doing any benchmarks, unless someone knows of or provides me with a war file to deploy and test. BTW, today I added to the mix Postgresql-7.4.1 via JNDI with dbcp-commons-pool. I'll be putting all that I've learned about installing the aforementioned on my page within the next couple of days at: http://daydream.stanford.edu/tomcat/install_web_services.html Oscar On Sat, 3 Jan 2004, Michael Coughlan wrote: -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Friday, January 02, 2004 8:19 PM To: Tomcat Users List Subject: Linux Kernel 2.6.0 success I am successfully running the latest Apache/Tomcat4/mod_jk/openssl/jdk with the new kernel 2.6.0 with RedHat9. Was there some kernel advancement that improves Tomcat's performance? - 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: Have some questions, also possible contract work up for grabs
Do any hosting companies offer reasonably priced colocation or flexible accounts with tomcat, php, and mysql installed? The IT company I work for has developed a great piece of software using JSP and Java technology but we need to get it onto a good box for production use. Waste of money and time. As someone else said - build your own and co-locate if necessary. Even if you did manage to get someone able to install/support tomcat and mysql, you'd probably pay through the nose for actual support (i.e. when something goes down). Far better to be in total control. PC's are not expensive, and a good OS (unix/linux/solaris) is not expensive. Co-locate? probably expensive, but still cheaper than what you would pay for REAL hosting (i.e. that worked when things broke). Cost of building your own and KNOWING what's going on... priceless. Co-locating can be pretty cheap, but someone has to setup all the stuff. Whether you do it yourself, or pay someone, all depends on your needs. I agree with you on handling your own installation, but there is a trade-off of time obviously. Does anyone here offer services such as using SSH to install Tomcat remotely? We would be willing to pay for someone to install Tomcat in a short timeframe. I doubt it. Most ISP's cannot even support PHP or perl, let alone tomcat/mysql/java. Some ISPs will, but you are probably better getting a sub-contractor who has a relationship with the ISP. Your small-to-medium datacenters I think are better for this. The ideal person would be someone that knows Tomcat installation quite well. We have installed it on a couple boxes, but usually by a lot of trial and error. We would like to get it up and running properly very quickly. Sorry to say this, but spend time with the docs and spend time doing the builds yourself. If anyone is interested, please send me an email and I can send you the details. I apologize in advance if this is not the place for an email like this. I figured this was probably one of the best places for an experienced Tomcat userbase. As long as you don't want to integrate Apache and Tomcat, you can email me. I will not put both on the same machine, after finding that the web server was killing tomcat performance (due to the number of web hits). I split Apache off to it's own server, and used a simple firewall (appliance) to forward port 80 requests to one machine, with port 443 (SSL) to the tomcat server. Secure application access, no hit from the web server. Some people like me don't have Apache doing much except passing the request over to Tomcat. In this case, I doubt it would benefit much to have Apache on a different box. I like Apache mostly for the more tested environment and handling of SSL, Virtual Hosts, etc. Oscar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MOD_JK2 also Fails aaaggggg@###!!!
I've done mod_jk many times on RH9, but not mod_jk2. My first suggestion would be to apply all updates before trying to compile anything, in particular: glibc and all other related glibc packages nptl-devel I don't know why you would have gone with mod_webapp before going to mod_jk. Check my page if you haven't already: http://daydream.stanford.edu/tomcat/install_web_services.html Oscar On Sat, 3 Jan 2004, George Shafik wrote: Yep, without going into too much detail IT DOESN'T WORK ITS REALLY BROKE. Over the past 4 weeks I've made 8 REAL attempts, spent around 30 hours of my time and short of writing the whole thing myself I went with mod_webapp.so, tomcat-warp.jar for Apache 1.3.29 Tomcat 4.1.29. The build is stuffed and its not the version of libtool or anything else something is broke when you try to build on RH9 exactly what is up to the many lib, builds scripts between Ant and Make - if I have enough time over the next decade I may be able to solve it however apache 1.3.29 can talk to Tomcat 4.1.29 for now through webapp connector, Now if through some miracle someone out there has managed to REALLY build this on current vanilla install of RH9 (not enterprise) I want a copy of mod_jk2.so file, httpd.conf, serer.xml, copy of the SOURCE jakarta-tomcat -connector used, a README file with exactly what you did and the best part for last I want a dump of your system output from the build of the mod_jk2.so in order to make me a believer. Keep in mind I want to build from source no binaries and Apache 2.0.48 connecting to Tomcat 4.1.29 through mod_jk2.so - all built from source just in case you mist my point. Greatest apologies but like many out there I'm very frustrate when stuff that I really don't want to know much about stops working because of compromises in testing on the various platforms or the Readme files aren't updated along side the respective release even though this is after all open source. Cheers, George Excellence is not an act, but a habit. - Aristotle - - Original Message - From: Suneel [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, January 02, 2004 6:24 PM Subject: MOD_JK2 also Fails [EMAIL PROTECTED] Hi since runing mod_jk is throwing me only jsp source instead of jsp..i am trying mod_jk2. Now when i start apache i get error ../native2/server/mod_jk2.c is not the correct version. So i got the source and compiled it using buildconf.sh and configure, but in my native2/server/apache2 there is no mod_jk2.so my config is rh9,tomcat 4.1.29 apache 2.0.48. At this point i want to take a shotgun and blow my comp. What is wrong here? regards suneel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat4.1.24 + apache_2.0.47 + connectors-jk2.0.2
Hi, Ok, I just did it for about the 5th time (mod_jk) on a completely new installation. I even have it running with the new and improved kernel 2.6.0! I'd say the common mistakes are: 1. Not removing the RPMS that will conflict, such as httpd and tomcat. 2. Not updating the critical updates first. nptl-devel and glibc primarily. 3. Trying to do a mixture of RPMS and build compiles. 4. Not setting LD_KERNEL_ASSUME=2.2.5 in case you have problems with threads. Personally, I'm not convinced that this is necessary in all cases. 5. Not configuring your environment variables right from the start 6. Then of course messing up the syntax of the config files. John Turner's site is well-written, but I would suggest taking a look at mine as it sometimes is clearer to someone seeing it explained two different ways. http://daydream.stanford.edu/tomcat/install_web_services.html Oscar On Fri, 2 Jan 2004, Enils Bashi wrote: Hi, I am sure everyone has seen the good work John has done with his how-to's; but I am supprised at some people's denial when it comes to admitting building problems on Redhat 9. I have tried building mod_jk and mod_jk2 from source many times for tomcat 4.1.27 and apache-2.0.44; but it is impossible. I am sure numerous users are having the same problems, but they are directed to how-to's that don't deliver. I am curious to know whether someone has succeeded in building mod_jk of any kind for Redhat 9 with tomcat 4 and apache2. Enils -Original Message- From: Mark Eggers To: Tomcat Users List Sent: 1/2/2004 3:59 PM Subject: Re: tomcat4.1.24 + apache_2.0.47 + connectors-jk2.0.2 John's excellent instructions are written for mod_jk mod_jk2 is different. There are several How-To's available. [link] Tomcat-Apache using JK2 connector from the FAQ page or http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb are two good sources of information. HTH /mde/ just my two cents . . . . __ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003 - 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]
Linux Kernel 2.6.0 success
Hi, I am successfully running the latest Apache/Tomcat4/mod_jk/openssl/jdk with the new kernel 2.6.0 with RedHat9. So far I am NOT using the LD_KERNEL_ASSUME=2.2.5, and Tomcat4 starts up really fast. Apache seems to start in anticipation of me hitting the enter button :) The kernel is pretty spiffy esp. without setting the LD_KERNEL_ASSUME. There are a couple of things you have to do to get kernel 2.6.0 running but it's pretty minor. You can find it on the web, but I'll have it up on my page soon also: http://daydream.stanford.edu/tomcat/install_web_services.html Oscar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat for RedHat Enterprise Linux
Any version that works on RH 7.3 should work on RH 7.3 Enterprise. You should install the latest 4.1.29 or the most recent tomcat5 version, if you wanted tomcat5. Now, if you are asking what version is supported, then whatever RH supports is what is supported. That all depends on who you buy your support from. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Sat, 20 Dec 2003, Sarika Inamdar wrote: Hi, We are using tomcat 4.1.2 version with our application running on RedHat Linux 7.3. We are migrating our application from RH 7.3 to RedHat Enterprise Linux. I could not find anything on Jakarta site which mentions the tomcat version support for RedHat Enterprise, hence posting the question here. Could anyone please let me know which tomcat version is supported with RH Enterprise Linux. Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache-tomcat via mod_jk configuration
Are you sure you meant httpd1? The daemon script on my site is httpd. The website explains a setup for Tomcat 4, not Tomcat 5. I don't know if there's any difference, but there may be. I'm also confused as you apparently didn't copy your configuration into this post, you just copied most of the contents of my web page into it. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003 [EMAIL PROTECTED] wrote: Hi all, I've read a configuration of tomcat and apache (http://daydream.stanford.edu/tomcat/install_web_services.html ) over the last 4 days, and I've found much of what I need to be lacking After reading full documentation on the jakarta website about how the server.xml is organized for tomcat 4, I still have some questions... I will first explain the desired setup, then I will show what I have. If you gracious folks can help me set this up, I will GLADLY set up a complete HOW-TO replicating the solution on my website for all the world to see. you knows you probably get a lot of questions about this. My hope is to guide the user by the hand step by step for this complex process. I have been using Tomcat 3 for a long time with mod_jk and have been very happy, but I now need the newer features of Tomcat 4. Here's the setup (everywhere hereafter, I've replaced the actual domain names with domainname for privacy...just know that everytime you see that, its actually a domain name, and ignore the brackets Redhat Linux 9 httpd-2.0.48 / usr/loca/apache2 Java JDK 1.4.2_03 ---/usr/lcoal/java Tomcat 5.0.16 Light Edition (since I have jdk 1.4.2_03) .--/usr/local/tomcat mod_jk /usr/lcoal/src/mod_jk my question is there is httpd in linux 9 and postgresql and i installed apache and tomcat and psotgresql i added the httpd1 and tomcat in sbin/chkconfig --add httpd1 amd tomcatd by using the configuration given in http://daydream.stanford.edu/tomcat/install_web_services.html site fullythen i started the catalina_home /bin/startup.sh which was started in command line but i am not able to get test page in Browser it tells that connection refused i start by using httpd1 and tomcatd it shows that unreconized service please help to solve the problem as soon as possible Thakning You Dhayalan.G # Configure Environment Variables Edit and add the lines below to /etc/profile Make sure you logout and login for this to take effect. If you're in XWindow you might need to quit out of XWindow and exit primary shell. Then login again and start XWindow again (startx). It's really good to get this straight from the beginning. JAVA_HOME=/usr/local/java/java CATALINA_HOME=/usr/local/tomcat PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:. Now add the PATH JAVA_HOME CATALINA_HOME CLASSPATH if any aren't in the export line export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME CLASSPATH This will output your environment variables env Install JAVA mkdir /usr/local/java cd /usr/local/java sh j2sdk-1_4_2-linux-i586.bin The jdk directory is then extracted mv j2sdk-1.4.2 /usr/local/java ln -s j2sdk1.4.2 java Now the java directory will be in /usr/local/java/java. I do it like this so I can keep all my different JDKs/JREs in one directory and then just change the symbolic link to point to the current one. Install Jakarta TOMCAT tar xvfz jakarta-tomcat-4.1.27.tar.gz mv jakarta-tomcat-4.1.27 /usr/local/ cd /usr/local ln -s jakarta-tomcat-4.1.27 tomcat Install Jakarta ANT tar xvfz jakarta-ant-1.5.4 mv jakarta-ant-1.5.4 /usr/local cd /usr/local ln -s jakarta-ant-1.5.4 ant ln -s /usr/local/ant/bin/ant /usr/local/bin/ant Install OPENSSL tar xvfz openssl-0.9.7c.tar.gz mv openssl-0.9.7c /usr/local/src/ cd /usr/local/src/ ln -s /usr/local/openssl-0.9.7c openssl cd openssl-0.9.7c ./config make make test make install #This will install in /usr/local/ssl Install APACHE tar xvfz httpd-2.0.47.tar.Z cd httpd-2.0.47 ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite \ --enable-ssl --with-ssl=/usr/local/ssl --enable-proxy make make install #(places in /usr/local/apache2) Build/Install MOD_JK Connector Build mod_jk cd /usr/local/src/jakarta-tomcat-connectors-jk-1.2.4-src/jk/native ./buildconf.sh ./configure --with-apxs=/usr/local/apache2/bin/apxs make cp apache-2.0/mod_jk.so /usr/local/apache2/modules Installs mod_jk in correct
Fedora (RedHat) Linux and gcj
I saw this in Fedora 2 release schedule. We have set a very aggressive schedule for Fedora Core 2. Red Hat considers two items absolutely stop-ship -- that is, we will slip the release if necessary to include them. These two items are the 2.6 Linux kernel and SELinux functionality integrated into the distribution. Other areas of technology that the Fedora Community (Red Hat and third parties together) will focus on will include GNOME 2.6 (tight schedule, particularly dependent on Gtk+ 2.4), KDE 3.2, more Java software using gcj (Ant, Tomkat, Jakarta, Eclipse, but not Mozilla plugins, AWT, or Swing), and integrating work on other architectures (at least AMD64, and possibly also SPARC). Does anyone have any ideas on Tomcat running under gcj? Does it work well already, and would we expect real performance benefits from it? Since Tomcat (Tomkat) isn't spelled correctly in the release schedule, I don't have a lot of confidence that this means anything. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need some Tomcat Configuration help badly
Hi, If I understand this correctly, there are references lying around that point to objects that no longer are needed. Is this something the developer does or something tomcat does in compiling the servlets? In other words, is there something the developer or administrator can do to avoid this? Does pre-compiling the jsp files avoid this? Another thing I'm not sure I understand is this: If you don't change the JSP pages, or class files, then the memory leak that is created just happens once. In this scenario, the memory leak wouldn't keep growing until eventually tomcat does. Is that correct? Thanks, Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003, Shapira, Yoav wrote: Howdy, Actually, the popularity and usage of Jikes has been decreasing (at least as measured by downloads). Javac's memory-handling behavior has been improved significantly. The memory leaks described earlier in this thread are not compiler-related and simply swapping compilers would not help. They are problems of reference scope. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 1:16 AM To: Tomcat Users List Subject: Re: Need some Tomcat Configuration help badly Dick Steflik wrote: I had the same question. In all of the years I've worked with Java I've always thought it was free of memory leaks. If you use a different compiler does the problem go away. Is that how people like JRun (Macromedia) and WebSphere (IBM) avoid the problem? It could be. Someone here mentioned using Jikes for Tomcat as a workaround (solution). I know that Jikes has bugs, here and there, but it can be made to work and it comes with Tomcat. Considering that javac has an all present bug (this memory leak), Jikes is better. I guess commercial solutions use their own implementations or fork off to get rid of memory leak. Why does JavaC have that memory leak? Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need some Tomcat Configuration help badly
Thanks. I'm still not sure what kind of code would produce a memory leak. Any chance you could give a brief description or example of this? Thanks, Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003, Shapira, Yoav wrote: Howdy, If I understand this correctly, there are references lying around that point to objects that no longer are needed. Is this something the developer does or something tomcat does in compiling the servlets? This is something the developer does. In other words, is there something the developer or administrator can do to avoid this? Does pre-compiling the jsp files avoid this? Pre-compiling JSP files helps avoid the javac memory leak previously described. The memory leak is just inside the JSPC process, not inside the tomcat running server. The developer can employ good coding practices as well as good QA practices such as the use of a profiler throughout the lifecycle of the project to detect and prevent memory leaks. If you don't change the JSP pages, or class files, then the memory leak that is created just happens once. In this scenario, the memory leak wouldn't keep growing until eventually tomcat does. Is that correct? This is true. In this scenario (one compilation of each JSP in a running tomcat server) you'd have a limited memory leak per JSP. If you have thousands of JSPs, this can still be a serious leak. Yoav Shapira Thanks, Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003, Shapira, Yoav wrote: Howdy, Actually, the popularity and usage of Jikes has been decreasing (at least as measured by downloads). Javac's memory-handling behavior has been improved significantly. The memory leaks described earlier in this thread are not compiler-related and simply swapping compilers would not help. They are problems of reference scope. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 1:16 AM To: Tomcat Users List Subject: Re: Need some Tomcat Configuration help badly Dick Steflik wrote: I had the same question. In all of the years I've worked with Java I've always thought it was free of memory leaks. If you use a different compiler does the problem go away. Is that how people like JRun (Macromedia) and WebSphere (IBM) avoid the problem? It could be. Someone here mentioned using Jikes for Tomcat as a workaround (solution). I know that Jikes has bugs, here and there, but it can be made to work and it comes with Tomcat. Considering that javac has an all present bug (this memory leak), Jikes is better. I guess commercial solutions use their own implementations or fork off to get rid of memory leak. Why does JavaC have that memory leak? Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need some Tomcat Configuration help badly
Thanks for the clarification. This seems reasonable, as I thought it would be unlikely in most circumstances. Not properly closing/de-referencing external resources, including threads would cause the JVM's memory to grow. JDBC resources would probably be the most common. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003, Shapira, Yoav wrote: Howdy, Sure, here's one example: void someMethod() { // MyJob implements Runnable Thread myJobThread = new Thread(new MyJob()); boolean goAhead = evaluateSomeCondition(); if(goAhead) { myJobThread.start(); } else { System.out.println(Not running job.); } } Because creating a thread allocates some resources and adds a reference to the thread in its parent ThreadGroup, when the method is done the Thread cannot be garbage-collected even though the myJobThread reference is gone. A simple fix might be to do the thread creation inside the goAhead clause. This is only to show it's possible. Obviously this is not an example of good practice, but it's an easy enough mistake to make ;) The above is an implementation of an example mentioned on this thread: http://forum.java.sun.com/thread.jsp?forum=4thread=456545message=20839 57. There are others... Yoav Shapira Millennium ChemInformatics -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 2:38 PM To: Tomcat Users List Subject: RE: Need some Tomcat Configuration help badly Thanks. I'm still not sure what kind of code would produce a memory leak. Any chance you could give a brief description or example of this? Thanks, Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003, Shapira, Yoav wrote: Howdy, If I understand this correctly, there are references lying around that point to objects that no longer are needed. Is this something the developer does or something tomcat does in compiling the servlets? This is something the developer does. In other words, is there something the developer or administrator can do to avoid this? Does pre-compiling the jsp files avoid this? Pre-compiling JSP files helps avoid the javac memory leak previously described. The memory leak is just inside the JSPC process, not inside the tomcat running server. The developer can employ good coding practices as well as good QA practices such as the use of a profiler throughout the lifecycle of the project to detect and prevent memory leaks. If you don't change the JSP pages, or class files, then the memory leak that is created just happens once. In this scenario, the memory leak wouldn't keep growing until eventually tomcat does. Is that correct? This is true. In this scenario (one compilation of each JSP in a running tomcat server) you'd have a limited memory leak per JSP. If you have thousands of JSPs, this can still be a serious leak. Yoav Shapira Thanks, Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003, Shapira, Yoav wrote: Howdy, Actually, the popularity and usage of Jikes has been decreasing (at least as measured by downloads). Javac's memory-handling behavior has been improved significantly. The memory leaks described earlier in this thread are not compiler-related and simply swapping compilers would not help. They are problems of reference scope. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 1:16 AM To: Tomcat Users List Subject: Re: Need some Tomcat Configuration help badly Dick Steflik wrote: I had the same question. In all of the years I've worked with Java I've always thought it was free of memory leaks. If you use a different compiler does the problem go away. Is that how people like JRun (Macromedia) and WebSphere (IBM) avoid the problem? It could be. Someone here mentioned using Jikes for Tomcat as a workaround (solution). I know that Jikes has bugs, here and there, but it can be made to work and it comes with Tomcat. Considering that javac has an all present bug (this memory leak), Jikes is better. I guess commercial solutions use their own implementations or fork off to get rid of memory leak. Why does JavaC have that memory leak? Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only
Re: Tomcat performance on Windows versus Linux
I am about to setup Tomcat under a new Linux 2.6 kernel with 2 Athlon MP processors. Since scheduling, threading, and SMP have been much improved in the new kernel I wonder if it will add to performance. I don't have anything to test the new setup with, but if anyone has good ideas (and by good, I mean easy), as I haven't done any profiling, etc. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Mon, 15 Dec 2003, Sean Dockery wrote: Thanks, Tim, for the even handed response. I'm not looking for a business case to choose one or the other, however; it is certain that our customers will be deploying our application on both Linux and Windows (and even Solaris). I'm just looking to find out whether or not OS service (TCP/IP stacks, threads, file I/O, etc...) implementation differences between Linux and Windows have a significant impact on performance and thus should be weighed accordingly. I received a response in email from Peter Lin in which he details his experience (which was very helpful; thank you, Peter). I've read Peter's article about performance tuning and a few other white papers as well, but I haven't really seen anything in the past that focused on OS differences and how those differences might affect the recommended approach to profiling and tuning. My conclusions from my readings so far: Slow java code (i.e.: algorithms) will be slow on any platform; change the implementation to make it faster. Configurable behaviour dependent upon OS services (TCP/IP stacks, threads, file I/O, etc...) should be tuned for the platform on which the application will live. PS: I was sad to learn that the Tomcat Performance Handbook publishing date would be postponed. I would be thrilled if either you or Peter could tell me that the book will see a printer's press anytime soon. PPS: Is there a wiki for this stuff anywhere? Tim Funk [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [I hate saying this since its rather very much like flambait but...] If its worth anything, I haven't had enough load on any of our apps to know whether Linux or Windows is better. Instead, look at: *** - Maintenance - If your a windows shop - stay windows *** - Debugging - I think troubleshooting is easier on *nix systems (YMMV) - Comfort - If your comfortable with unix concepts - linux might be easier than windows -Tim Sean Dockery wrote: I am planning to profile a web application on Windows XP (my development platform). I am curious as to whether or not different components in Tomcat and the JVM will behave differently (in a relative comparison) on Linux (production platform) than Windows. For example, I have had a person tell me that threads under Linux are more performant than threads under Windows--leading to the corollary that web applications under Linux are more performant than web applications under Windows on the same hardware. My guess is that this claim is based upon the supposition that thread/context switches under Linux are faster than under Windows. I find the claim rather dubious because I've never seen data to support the claim, but doubt is not certainty. Is there any evidence that this claim and other component performance differences between the Windows and Linux platform exist and are significant enough to throw my performance measurements out the window. :-) My concern is that I'll profile the application under Windows and tune it, but then find that my gains aren't as significant or maybe even worthless under Linux. - 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: google yourself
LOL. I know that's happened to me too. That's when I know I'm in trouble :) Oscar On Thu, 11 Dec 2003, Januski, Ken wrote: The sad part of googling yourself is when you google for answers to a certain problem and end up getting an earlier post of your own on same topic as the first result. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 4:30 PM To: Tomcat Users List Subject: Re: google yourself Amazingly it seems that google is down. Bang goes another myth. On 12/11/2003 02:41 PM Nikola Milutinovic wrote: Ostad, James wrote: have you googled yourself at goole.com? I don't know how they get all of our listserv communications. Any one knows how they do that? There is a web archive of this list. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Uninstalling Tomcat
Additionally, after you find the package, you can see what files a package has installed, by doing something like this: rpm -qlp tomcat On Wed, 10 Dec 2003, Ben Souther wrote: Try querying the rpm database to see if it's in there. I think you need to be root. rpm -qa | grep tomcat If it is you can use rpm -e PACKAGE_NAME to remove it. On Wednesday 10 December 2003 02:27 pm, Nadia Kunkov wrote: It was not installed by me and I don't seem to find an rpm Most likely it was an RPM, though. I have installed a new version of Tomcat to a new location and need to get rid of the old one. Also, I set up Java_home in ~/.bashrc file and even after I dot execute it I get a message that Java_Home is not set when I start Tomcat. Should I do export Java_Home etc. in .bashrc or should I do it somewhere else? Thanks -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:26 PM To: Tomcat Users List Subject: Re: Uninstalling Tomcat How did you install it? On Wednesday 10 December 2003 02:16 pm, Nadia Kunkov wrote: HI, Sorry for a stupid question. Just wanted to make sure that to uninstall Tomcat all I have to do is to delete the directory where it's installed. Is that right or there are other steps? Thanks N.K. - 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: [OFF-TOPIC] Tomcat web hosting
http://www.servepath.com On Mon, 8 Dec 2003, Pitre, Russell wrote: Hello All- Sorry to bother you with another one of my questions.. Can anyone suggest a good and inexpensive web hosting service that provides tomcat and mySQL support?? Russ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Not even close to on topic: smake n cdrecord for linux
You are waay off topic here. A google search is the way to go here. Regards, Oscar On Mon, 8 Dec 2003 [EMAIL PROTECTED] wrote: Hi, apologies for being out of topic. I've installed a new scsi cd-rw, a cursory cdrecord -scanbus shows that it is recognised as a scsi device (which is fine) but displayed as CD-ROM. Does anyone have a more concise and readable howto for Joerg Schilling's smake and cdrecord tools? Apologies again for being out of topic... TIA :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Shell script to check if Tomcat is running?
This is for unix/linux. Oscar On Tue, 2 Dec 2003 [EMAIL PROTECTED] wrote: Does anybody has script also for unix systems like REDHAT linux? This looks likes for windows! 2 really simple ways - # Assume tomcat is the only java process COWBELL=`ps -ef | grep java| grep -v grep | wc -l` if [ $COWBELL 0 ]; then echo Woohoo - the process is there; fi - OR - # Assume glodenfile should be result from url below rm dest_file.html wget http://more/cowbell.txt --output-document=dest_file.html COWBELL=`diff dest_file.html goldenfile.html | wc -l` if [ $COWBELL == 0 ]; then echo Woohoo - the site is up (and not hacked); else echo The downloaded page is diff from the golden file fi - -Tim Tom Ly wrote: I plan on using cron to automatically run a script to check if Tomcat is running. How would I write one? -Tom - 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: Best JVM for Tomcat
Does -server work now? What version of Linux distro did -server cause problems, if any? Thanks, Oscar On Wed, 3 Dec 2003, Shapira, Yoav wrote: Howdy, I use Sun's latest on various platforms (Solaris 8, 9, SuSe, Intel) without a problem for both tomcat 4 and 5. The only caveat is the -server mode, which used to reduce stability. I knew there would be a jRockit response from Senor Cekvenich even before expanding this thread ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 7:09 AM To: Tomcat Users List Subject: Re: Best JVM for Tomcat On Wed, Dec 03, 2003 at 08:43:34AM -0300, Walter do Valle wrote: What is the best version of J2SDK to run Tomcat 4.1.29 over Linux? On Linux, I've been using the latest from Sun, 1.4.2_02 without any issues. There may be others which are faster, but performance hasn't been an issue for me. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best JVM for Tomcat
Ok, I just checked and I have been using -server with no problems. So that makes RH7.3 and RH9. Oscar On Wed, 3 Dec 2003, Ryan Lissack wrote: Hi, We use the -server option on all our live Linux machines and have not had any problems at all. JRE 1.4.1_03 on RedHat 9. Ryan. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 03 December 2003 17:46 To: Tomcat Users List Subject: RE: Best JVM for Tomcat Howdy, I don't use -server on linux now, haven't tried it as I had problems with it on the Solaris platform. Perhaps someone else could shed more light... Yoav Shapira Millennium ChemInformatics -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 11:33 AM To: Tomcat Users List Subject: RE: Best JVM for Tomcat Does -server work now? What version of Linux distro did -server cause problems, if any? Thanks, Oscar On Wed, 3 Dec 2003, Shapira, Yoav wrote: Howdy, I use Sun's latest on various platforms (Solaris 8, 9, SuSe, Intel) without a problem for both tomcat 4 and 5. The only caveat is the -server mode, which used to reduce stability. I knew there would be a jRockit response from Senor Cekvenich even before expanding this thread ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 7:09 AM To: Tomcat Users List Subject: Re: Best JVM for Tomcat On Wed, Dec 03, 2003 at 08:43:34AM -0300, Walter do Valle wrote: What is the best version of J2SDK to run Tomcat 4.1.29 over Linux? On Linux, I've been using the latest from Sun, 1.4.2_02 without any issues. There may be others which are faster, but performance hasn't been an issue for me. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Shell script to check if Tomcat is running?
On Mon, 1 Dec 2003, Tim Funk wrote: 2 really simple ways - # Assume tomcat is the only java process COWBELL=`ps -ef | grep java| grep -v grep | wc -l` if [ $COWBELL 0 ]; then echo Woohoo - the process is there; fi - This might depend on the shell used, but I think should be -gt. Here's another option in case you have java programs running that aren't Tomcat: #this is all one line COWBELL=`ps ax --width=1000 | grep \ [o]rg.apache.catalina.startup.Bootstrap \ start | awk '{printf $1 }' | wc | awk '{print $2}'` #end of one line if [ $COWBELL -gt 0 ]; then echo Woohoo - Tomcat is there; fi Cheers, Oscar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Slow on Linux
I imagine that you could compile an AMD64 kernel, and compile Postgresql for AMD64. But you still might have a poor performer with a 32-bit jdk. You could put Postgresql on a separate AMD64 server and Tomcat on a 32-bit X86 server, but that may or may not be what you want. Compiling a kernel for a server is really quite easy, because you don't need to worry about peripherials like FireWire, USB, etc. My HowTo describes how to compile PostgreSQL 7.3.4, and it's probably the same for 7.4. But I am going to compile 7.4 soon and post the info on my web page. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html Yonatan Goraly wrote: I have read that Suse linux team has been working closely with AMD to support AMD64, and I am going to try their commercial product (professional edition, $130). I know that SUN plan to have an AMD64 version for the JDK 1.5, which should be next year. The reason for choosing the Linux OS is not Java, but the database. I plan to use PostgreSQL 7.4, and they have a builds for suse x86_64, so it looks promising. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Slow on Linux
Ok, I read the PostgreSQL docs. It looks like AMD64 version is only workable under kernel 2.6. The good thing about the new kernel 2.6 is that FWIK you can have as many process/threads as you want cause it handles order of magnitudes more than kernel 2.4. I would also watch blackdown.org release schedule for their 64-bit version of the jdk/jre. IMHO, they know Linux a lot better than the Sun group does and are less combative with Linux. IBM jdk/jre is one to watch too. Oscar On Tue, 25 Nov 2003, Oscar Carrillo wrote: I imagine that you could compile an AMD64 kernel, and compile Postgresql for AMD64. But you still might have a poor performer with a 32-bit jdk. You could put Postgresql on a separate AMD64 server and Tomcat on a 32-bit X86 server, but that may or may not be what you want. Compiling a kernel for a server is really quite easy, because you don't need to worry about peripherials like FireWire, USB, etc. My HowTo describes how to compile PostgreSQL 7.3.4, and it's probably the same for 7.4. But I am going to compile 7.4 soon and post the info on my web page. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html Yonatan Goraly wrote: I have read that Suse linux team has been working closely with AMD to support AMD64, and I am going to try their commercial product (professional edition, $130). I know that SUN plan to have an AMD64 version for the JDK 1.5, which should be next year. The reason for choosing the Linux OS is not Java, but the database. I plan to use PostgreSQL 7.4, and they have a builds for suse x86_64, so it looks promising. - 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: Slow on Linux
I assume Firebird is just doing connection pooling internally. To be fair though, it is supposed to have very good performance but without all the features of PostgreSQL. Oscar On Tue, 25 Nov 2003, Yonatan Goraly wrote: Isn't this what connection pooling is all about? Wade Chandler wrote: Just wondering. Did you know that every Postgres connection creates a system process, and not a thread? PostgreSQL uses Fork. I don't use it because of this. DB Connection = Separate Process. I use Firebird. You can use Firebird 1.5 even. That's just a consideration since you are posting about performance. Wade -Original Message- From: Yonatan Goraly [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2003 3:05 AM To: Tomcat Users List Subject: Re: Slow on Linux I have read that Suse linux team has been working closely with AMD to support AMD64, and I am going to try their commercial product (professional edition, $130). I know that SUN plan to have an AMD64 version for the JDK 1.5, which should be next year. The reason for choosing the Linux OS is not Java, but the database. I plan to use PostgreSQL 7.4, and they have a builds for suse x86_64, so it looks promising. Nikola Milutinovic wrote: Yonatan Goraly wrote: The exact execution time of that line of code is not very relevant, since the difference is between an interval I can't notice to an interval I can notice very well - should be at least a factor of x100. I just finished installing RedHat 9 (32 bit), the performance is much better, and the CPU is working much less. I guess it was something related to the Mandrake version I had. It still feels slower than what I am used to on Windows, but I have to make measurements in order to arrive at any conclusions. You're using Opteron - that is 64-bit CPU. Why not compile kernel from the source for your desired platform? Is there a JRE specifically for Opteron? Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat start and stopping
I have some daemon scripts on my tutorial site. I wrote them for Linux but you should be able to change things if need be. I use chkconfig to make the sym links for the different runlevels, but you can just read the chkconfig line comment at the start of the script and do it yourself. I'm not sure how Solaris handles the runlevels sort of thing (Sys V, etc.), but it should be fairly simple to adapt. http://daydream.stanford.edu/#daemons Oscar On Sun, 23 Nov 2003, Tom Bartos wrote: Does anyone have any scripts to start and stop tomcat during system boot and shutdown? Environment Solaris 8 sparc Tomcat 4.1.29 Apache 1.3 Thanks -Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Slow on Linux
I'm no expert on Servlets so I'm not sure what's involved with all those calls, but it doesn't seem like it could be anything that takes 500ms. Have you tried running top while this is going on? You can set it to update quickly so that you can see what's taking up the processor, if anything. In particular, if it's a java thread (process) or Apache process. Are you compiling Apache and connector from source? Have you compiled a new kernel? Have you done all the updates to Mandrake? In particular nptl, gcc, glibc, and kernel. I don't know if many people are using Opteron here. You are picking a pretty new hardware architecture for your first Linux experience. I'm interested to see how many others have experience with this hardware. Oscar On Sun, 23 Nov 2003, Yonatan Goraly wrote: I am in the process of evaluating Linux as a server platform for my application (this is my first Linux experience). The environment is: - Single AMD Opteron 1.8 GHz - Tyan motherboard with 1 GB memory - Mandrake Linux 9.2 AMD64 RC1 - SUN JDK 1.4.2_02 - Tomcat 4.29, without Apache web server The first impression is that the application is extremely slow. I found out that calling getServletConfig().getServletContext().getRequestDispatcher(url).forward(request, response); can take about 500 ms (I put one log command before the call, and the other at the beginning of the forwarded JSP page, so I know that the only call my application does between the log commands is the forward call) Please advise - 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: Slow on Linux
Hi, You could buy an Enterprise edition of a distribution that supports AMD 64-bit. It does not seem to be quite ready in the main distributions. If you aren't willing to compile a new kernel, then I would not recommend going to native 64-bit AMD. Even if you are willing to, you might encounter some problems. And I don't know how much benefit you'd have without compiling any server software you are using. I'm also not sure what performance is like with Sun's or other's JDK. The JDK is probably what I'd be most concerned with performing under AMD64. If it's not good now, it will probably be good soon, since Sun is releasing servers with Opterons. But I don't even see that there is a JDK available for AMD64, so I can't imagine you'll gain anything by all the work being done mostly in Java under 32-bit. See this account: http://www.osnews.com/story.php?news_id=4618 BTW, I'm putting up a new server soon and I will be using dual AthlonMP processors. Oscar On Mon, 24 Nov 2003, Yonatan Goraly wrote: The exact execution time of that line of code is not very relevant, since the difference is between an interval I can't notice to an interval I can notice very well - should be at least a factor of x100. I just finished installing RedHat 9 (32 bit), the performance is much better, and the CPU is working much less. I guess it was something related to the Mandrake version I had. It still feels slower than what I am used to on Windows, but I have to make measurements in order to arrive at any conclusions. Shapira, Yoav wrote: Howdy, I understand and agree with your considerations. The only thing I asked was very simple: how fast does the same call perform on a different platform. Not the overall application, not DB queries, just the exact same line of code (which has four function calls). Yoav Shapira Millennium ChemInformatics -Original Message- From: Yonatan Goraly [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 2:55 PM To: Tomcat Users List Subject: Re: Slow on Linux The same application is deployed on multiple Windows boxes, with excellent performance (unless there is a heavy DB query involved, with a fast network and client machine the response seems to be instant with servers that should be dwarfed by this one). As we start to provide hosted services, the cost of the OS and DB become significant, that is the reason for evaluating Linux. I have selected AMD Opteron since I know that I can fall back to 32 bit OS if the 64 bit is not stable, and that it performs very well in that scenario. I started with Mandrake since it was possible to download ISO images, but I have also ordered an AMD 64 version of SUSE LINUX, since they have better support for that platform. Just to be able to compare, I will install Windows 2000 on the server as well. IMHO, if the performance I see is within the expected range, Windows is a much better OS for that purpose. I have read about performance issues related to Java java using OS threads in Linux, that should be resolved in the 2.6 version of the kernel - might that be related? Red hat have published that they have a solution implemented in their current products, the only problem is that the price is high Shapira, Yoav wrote: Howdy, First of all, how fast was the forward call on another platform? OTOH, 500ms for the line of code you gave below is not that atrocious. Both the getRequestDispatcher and forward calls are not lightweight. Yoav Shapira Millennium ChemInformatics -Original Message- From: Yonatan Goraly [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 2:17 AM To: Tomcat Users List Subject: Slow on Linux I am in the process of evaluating Linux as a server platform for my application (this is my first Linux experience). The environment is: - Single AMD Opteron 1.8 GHz - Tyan motherboard with 1 GB memory - Mandrake Linux 9.2 AMD64 RC1 - SUN JDK 1.4.2_02 - Tomcat 4.29, without Apache web server The first impression is that the application is extremely slow. I found out that calling getServletConfig().getServletContext().getRequestDispatcher(url).forw ar d(re quest, response); can take about 500 ms (I put one log command before the call, and the other at the beginning of the forwarded JSP page, so I know that the only call my application does between the log commands is the forward call) Please advise - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain
Apache Tomcat connector FAQ admin?
Hi, I have to move my tutorial listed on the Apache Tomcat Connector FAQ page. I'm wondering who I should contact. I couldn't find the contact info on the FAQ. I guess it's not Frequent enough:) I believe I remember Tim Funk starting it, but maybe it's changed now. I don't have a new URL yet, but will shortly. Just wanted to get a contact so it doesn't have down time. An email or web page that has the contact info would be great. Thanks so much, Oscar Carrillo http://daydream.stanford.edu/tomcat/install_web_services.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk + apache 2.0.40 + redhat 9.0
I would suggest using more than one as a reference in case something is misunderstood or vague. My tutorial is below: http://daydream.stanford.edu/tomcat/install_web_services.html I link to many other sites that are useful, and I believe John Turner's site (which I link to) links to an RPM based solution. Oscar On Thu, 20 Nov 2003, Peter Maas wrote: Hi all, googling for mod_jk solutions yielded far to much tutorials. what is the best one?? P - 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: Worrying problem
You didn't state what Linux distribution or tomcat, or java version. Do you use apache in front of tomcat? Do you have the latest packages for your Linux distribution? In particular, nptl, gcc, kernel packages. Have you tried the old threading model by setting it in your startup script?: LD_KERNEL_ASSUME=2.2.5 Oscar On Thu, 20 Nov 2003, Walter do Valle wrote: Sometimes it opens many threads and the command tomcat4 stop does nost stop all threads. I need to kill one by one. Why? When you say sometimes, what do you mean exactly? Can you reproduce it in a test case? 2 -3 times by day. I don't know exactly what is causing the problem. I can't reproduce that. Is there a correlation between high load on your system and a high number of threads? There should be. CPU was 70% free. By how much does the number of threads exceed your maxProcessors as configured in server.xml? In server.xml maxProcessors=75 for but there is about 90 threads in the system (ps -ef). The tomcat shutdown script (I don't know what tomcat4 stop is) will shut down the tomcat engine itself. It's equivalent to catalina.sh stop. I never use shutdown.sh. If your app or code used by your app starts non-daemon threads, you are responsible for closing them yourself. Tomcat cannot do that for you. These threads will prevent a proper shutdown. This has been discussed many times on this list in the past. I don't create any threads. - 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: RH9 fixes sig 11 with Apache2/Tomcat4/JVM1.4X/RH8??
What's your hardware? Are you running multiple processors? Do you compile your own Apache2 and mod_jk/mod_jk2? Have you tried compiling your own kernel from the more recent sources. Kernel 2.4 had some shaky releases and RedHat8 fell in the middle of it. Kernel 2.4.22 is the latest. Have you tried setting the environment variable: LD_KERNEL_ASSUME=2.2.5? Oscar On Tue, 18 Nov 2003, David Muller wrote: Hello all, Can anyone please confirm or deny rumors that moving from RH8 to RH9 fixes random Sig 11 crashes when an Apache2/Tomcat4/JVM1.4X app is loaded? We have gone through a huge matrix of heap sizes, stack sizes, connectors, connector settings, hyperthreading off, etc. with jvm gcverbose on and still get sig 11's at random places when we load our app. This is with BOTH the IBM 1.4.1 JDK and the Sun 1.4.2_02 JDK. We have upgraded RH 8 with the latest OS patches. If anyone has found this and can point to a specific lib that would be even better. Thanks, -Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 2:54 AM To: [EMAIL PROTECTED] Subject: RE: Signal 11 causing Tomcat crash I've seen similar things with Java. Are all the java related patches for the OS applied. We recently have a similar issue with Solaris 2.8 and Java and applying the relevant patches cured it. File a bug report with Sun/IBM? Greg -Original Message- From: Phil Steitz [mailto:[EMAIL PROTECTED] Sent: 15 November 2003 21:38 To: Tomcat Users List Subject: Re: Signal 11 causing Tomcat crash Jim Goodspeed wrote: Unfortunately we have also tried Sun's JVM and are experiencing the same Signal 11 errors (I've included two snippets of the Sun error - same error as the IBM Sig 11, just in a different format). Sometimes the dump specifies the library in question, other times it does not. Thanks, Jim An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x1 Function=[Unknown.] Library=(N/A) An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x59DF83B0 Function=(null)+0x59DF83B0 Library=/usr/IBMdb2/V7.1/lib/libdb2.so.1 Are you sure that the driver version and fixpack match the server? DB2 can do funny things when this is not the case. See for example: http://dbforums.com/arch/39/2002/9/515834 Phil - 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: RH9 fixes sig 11 with Apache2/Tomcat4/JVM1.4X/RH8??
To follow up a little. A great free memory tester is here: http://www.memtest86.com/ Oscar On Tue, 18 Nov 2003, Oscar Carrillo wrote: What's your hardware? Are you running multiple processors? Do you compile your own Apache2 and mod_jk/mod_jk2? Have you tried compiling your own kernel from the more recent sources. Kernel 2.4 had some shaky releases and RedHat8 fell in the middle of it. Kernel 2.4.22 is the latest. Have you tried setting the environment variable: LD_KERNEL_ASSUME=2.2.5? Oscar On Tue, 18 Nov 2003, David Muller wrote: Hello all, Can anyone please confirm or deny rumors that moving from RH8 to RH9 fixes random Sig 11 crashes when an Apache2/Tomcat4/JVM1.4X app is loaded? We have gone through a huge matrix of heap sizes, stack sizes, connectors, connector settings, hyperthreading off, etc. with jvm gcverbose on and still get sig 11's at random places when we load our app. This is with BOTH the IBM 1.4.1 JDK and the Sun 1.4.2_02 JDK. We have upgraded RH 8 with the latest OS patches. If anyone has found this and can point to a specific lib that would be even better. Thanks, -Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 2:54 AM To: [EMAIL PROTECTED] Subject: RE: Signal 11 causing Tomcat crash I've seen similar things with Java. Are all the java related patches for the OS applied. We recently have a similar issue with Solaris 2.8 and Java and applying the relevant patches cured it. File a bug report with Sun/IBM? Greg -Original Message- From: Phil Steitz [mailto:[EMAIL PROTECTED] Sent: 15 November 2003 21:38 To: Tomcat Users List Subject: Re: Signal 11 causing Tomcat crash Jim Goodspeed wrote: Unfortunately we have also tried Sun's JVM and are experiencing the same Signal 11 errors (I've included two snippets of the Sun error - same error as the IBM Sig 11, just in a different format). Sometimes the dump specifies the library in question, other times it does not. Thanks, Jim An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x1 Function=[Unknown.] Library=(N/A) An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x59DF83B0 Function=(null)+0x59DF83B0 Library=/usr/IBMdb2/V7.1/lib/libdb2.so.1 Are you sure that the driver version and fixpack match the server? DB2 can do funny things when this is not the case. See for example: http://dbforums.com/arch/39/2002/9/515834 Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing jakarta on linux RH9
Interesting. I wonder if that's all it is. Any wish to elaborate if you are not using a connector to Apache? I was assuming everyone who was using tomcat on such heavy loads would be using Apache in front. BTW, if by any chance you're using the daemon scripts off my site, you would be using the LD_KERNEL_ASSUME=2.2.5 I set that because you definitely need it on RedHat 7.3, and I don't have a RH9 server in production yet. I'm probably also too afraid to change it even now though. http://daydream.stanford.edu/tomcat/install_web_services.html Oscar On Tue, 4 Nov 2003, Christopher Schultz wrote: Remy, No, on RH 9, all VMs will actually need the LD_ASSUME_KERNEL env variable (look in the archives for the details on the problems and the workaround). Is this accurate? I use RH9 with kernel 2.4.20/i686, JDK 1.4.2-b28 without any LD_ASSUME_KERNEL setting (that I know of). The problems are with the HTTP/1.1 connector (it dies after about one day, regardless of the load). Also, there has been a GLIBC update which could have fixed the issue, so if you keep your system fully patched, you could be ok. I've never had anything die on me, and I have glibc-2.3.2-11.9, which should be the version that comes on the RH9 installation media. I'm using: Apache/2.0.46 (Unix) mod_jk/1.2.4 and Tomcat 4.1.27 with the context reloading hotfix. ?? Not that I'm unhappy not having problems, but I'm curious as to why some people have this problem and I don't. Oh! Duh, I see it, now. I'm only using the CoyoteConector to allow Apache to connect to Tomcat. I'm not using Tomcat as a standalone web server. (I decided to post this message anyway in case some people were not clear what the problem is) -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: db pool problems - jdbc connection count?
How about just watching the processes for postgresql while you access the site?: ps auxw | grep postgres Oscar On Thu, 30 Oct 2003, john-paul delaney wrote: Hello List... Sorry if this is off-topic. Although I think I'm following the jndi-resources-howto fairly well, I find I'm running out of connections and I have to restart tomcat to free them up. I'd like to know how many jdbc connections are in use at any given time with the intention of finding the offending servlet(s). I'm using postgreSQL. I've googled and looked at the postgres user lists but not found an example on how to detect the current number of connections in use. Can anyone help? tomcat 4.1.24 postgresql 7.3.3 pg73jdbc3.jar commons-pool 1.0.1 I believe I'be been pretty thorough in closing down resultsets, preparedstatements and connections after use, and use the removeAbandoned parameter in the DataSource Resource section of server.xml. Any leads are much appreciated. thanks /j-p. - 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: Help needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk
Be careful in sending to this list. There were multiple messages of the same post. Answers within. On Thu, 30 Oct 2003, Joaquin Corchero wrote: Hi everyone I hope someone can help me After having a look to your url. I've to say that I think I'm closer to a solution, but I haven't arrived yet. I haven't achieved yet to make apache and tomcat work together. I followed the steps to setup apache nonssl, tomcat and mod_jk because I had java already installed and I work with mysql and I think I don't need any of the other packages that you mention in the url. After following your instructions I found two steps a bit estrange that I don't understand: 1) Directly below this line in /usr/local/tomcat/WEB-INF/server.xml Host name=localhost debug=0 appBase=webapps Add this line Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/usr/local/apache2/modules/mod_jk.so / Do you mean that I need to create a folder called WEB-INF and introduce a copy of server.xml? No, that was typo. Funny you mention it, I changed it yesterday on the site: Proper location: /usr/local/tomcat/conf/server.xml 2) In the same paragraph you have this: Create file /usr/local/tomcat/workers.properties with these contents: # Setting Tomcat Java Home workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/local/java/java ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13..host=localhost:443 worker.ajp13.type=ajp13 But the default location for the workers file (or the location that everybody uses) is /usr/local/tomcat/conf/jk/workers.properties. Do you mean that I need to create another workers .properties? You're right, it should be /usr/local/tomcat/conf/jk/workers.properties. Anyway is what I created the new file and I copied the same content in the other workers but I'm not sure if the line worker.ajp13..host=localhost:443 should be worker.ajp13..host=localhost:80 because I'm not using SSL. That line is unncessary with talking to apache. It should read like the following: worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 I'll make these changes today on my site. Sorry for the confusion. Check John Turner's site if you want for double-checking, which there is a link on my site to. Good luck, Oscar Attached you will find my httpd.conf, server.xml and workers.properties. Thank you for your help. Joaquin Talego - Original Message - From: Oscar Carrillo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 4:15 PM Subject: Re: Help needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk Does Apache launches and serves up plain html files? If so, most likely it's the mapping done in httpd.conf and/or the auto-generated modjk.conf file. I have examples on how to do it in httpd.conf for virtual hosting here: http://daydream.stanford.edu/tomcat/install_web_services.html It may help you in seeing what gets configured where. Oscar On Wed, 29 Oct 2003, Joaquin Corchero wrote: Hi! I'm new in tomcat and I have a problem (very big for me) so I hope someone will be able to help me. My problem is that after setting everything up following the instructions from http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html, the apache server doesn't execute the jsp files. I didn't get any error during the installations, so I think everything is working properly I don't understand what's the problem. Thank you Joaquin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT: db pool problems - jdbc connection count?
Thanks for a more complete solution Yoav! I'm still using a homebrew connection pool, so I'm lacking in some features. I'm planning on moving to one of the standard connection pools since they exist now and look quite good. Can I put your example up on my site when I finally get to doing a HOWTO on how to do connection pools? Regards, Oscar On Thu, 30 Oct 2003, Shapira, Yoav wrote: Howdy, It's very similar to how you get a connection. Let's say your datasource is defined in server.xml with name jdbc/myDataSource. Then: InitialContext ic = new InitialContext(); DataSource ds = (DataSource) ic.lookup(java:comp/env/jdbc/myDataSource); If you wanted a connection, you'd call ds.getConnection(). But you want to find the number of active connections, which is not part of the DataSource interface. So you need to cast ds to the specific type, which is the type your specified in server.xml. Assuming that type is org.apache.commons.dbcp.BasicDataSource, you'd do: BasicDataSourcs bds = (BasicDataSource) ds; int numActive = bds.getNumActive(); int numIdle = bds.getNumIdle(); System.out.println(There are + numActive + active connections and + numIdle + idle connections in the pool.); I'm assuming you're using DBCP. If you're using another connection pool, the above code must be modified accordingly. Yoav Shapira Millennium ChemInformatics -Original Message- From: john-paul delaney [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 6:30 PM To: Tomcat Users List Subject: RE: OT: db pool problems - jdbc connection count? Thanks Yoav... sorry it's a wee bit above my immediate understanding (e.g lookup my connection pool by JNDI name - I could do with an example of what this means) plese be patient and point me to a resource that will give me some lead to catch up with you. regards /j-p. On Thu, 30 Oct 2003, Shapira, Yoav wrote: Howdy, You can write a bit of code to do this: - Create an InitialContext - Get the java:comp/env context - Lookup your connection pool by JNDI name - Cast your connection pool to the appropriate type as specified in your server.xml Then you can call the implementation-specific method, e.g. getNumActive() / getNumIdle() for org.apache.commons.dbcp.BasicDataSource, to look at values. Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mapping Apache virtual hosts to Tomcat web applications
Yes you can. I don't explicitly go into this, but I have some explanation on virtual hosting with mapping to tomcat apps on my site with Apache 2.0/Tomcat/Mod_JK. http://daydream.stanford.edu/tomcat/install_web_services.html I'm sure you can find info in the archive here too. Oscar On Wed, 29 Oct 2003, Patrick Herrera wrote: Hi, I am using mod_jk to connect Apache 1.3 to Tomcat 4.1. I have the two working together fine, but I want to know if I can map a specific virtual host to a specific web application? In other words can I access 2 Tomcat applications: http://example.com:8080/greensite/index.jsp http://example.com:8080/goldsite/index.jsp as www.geensite.com/index.jsp and www.goldsite.com/index.jsp respectively?. It appears that you can only map to the root of the Tomcat application directory, meaning I will have to access them as www.greensite.com/greensite/index.jsp for example. I have looked through the HOWTO (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html), but I am beginning to suspect that this is only possible using JK2, and no facility exists in JK for this level of control. Is any of this possible using mod_jk? Otherwise I may just look at installing Apache 2 and mod_jk2 instead. Thanks, Patrick Little Devil Media Level 2 - 83 Salamanca Place, Hobart, Tasmania Australia 7004 Phone (+61 3) 6224 3535 Facsimile (+61 3) 6224 3545 Internet: http://www.littledevil.com.au - 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: Help needed with Apache 2.0.47 Tomcat 4.1.27 + mod_jk
Does Apache launches and serves up plain html files? If so, most likely it's the mapping done in httpd.conf and/or the auto-generated modjk.conf file. I have examples on how to do it in httpd.conf for virtual hosting here: http://daydream.stanford.edu/tomcat/install_web_services.html It may help you in seeing what gets configured where. Oscar On Wed, 29 Oct 2003, Joaquin Corchero wrote: Hi! I'm new in tomcat and I have a problem (very big for me) so I hope someone will be able to help me. My problem is that after setting everything up following the instructions from http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html, the apache server doesn't execute the jsp files. I didn't get any error during the installations, so I think everything is working properly I don't understand what's the problem. Thank you Joaquin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 to start automatically on linux at bootup
Also my page: http://daydream.stanford.edu/tomcat/install_web_services.html You can download one for apache, tomcat, and postgresql. It will probably be the same as the one Tim noted, except mine has a status command for tomcat that tells you how many threads/processes are running for tomcat. I also have the LD_KERNE_ASSUME=2.2.5 set so that tomcat doesn't occasionally crash due to the threading issues with RedHat. Oscar On Tue, 28 Oct 2003, Tim Funk wrote: From http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links ... http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html -Tim Mark Tebong wrote: Hi. I have installed Tomcat 5 on redhad 9, and works fine. However I would like to start it as a service automatically everytime the computer boots up. Please can someone please provide a reference to information on how to do that or simply tell me how to do that? Thanks MT - 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]
RePost: Linux Kernel 2.6
Ok, maybe you all headed out of town for the weekend and aren't watching the list. So I'm reposting this so that maybe I can catch the Monday morning stampede. For those in Daylight Savings Time zones, remember you've got an extra hour to read the list :) Just wondering if anyone has experience with Tomcat and Linux kernel pre-2.6. It looks like this kernel is going to go mainstream soon, so I'd like to know what to expect. Linus Torvalds has said there will probably be one more minor revision and then the next will be 2.6. By my rough estimates that puts it at about 1 month away. Don't mind being the first to try it out, but I'm thinking there's others who already have. If so, what's your experience? Oscar On Thu, 23 Oct 2003, Oscar Carrillo wrote: Has anyone tried running Apache/Tomcat with the new 2.6-pre kernel? Or for that matter, has anyone ran it under the mm, or O1 scheduler patches? I'm also planning on running it with a dual AthlonMP system. Has anyone had any experiences with that, good or bad. I assume it should be no problem but any feedback would be appreciated. Thanks, Oscar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to find servlet class after reload
Your load on startup is in your applications web.xml file? Are you saying it works fine the first time you start Tomcat? If so, then maybe it doesn't get shutdown propertly, when you restart. Or do you mean just reloading the application? There's supposed to be a patch to Tomcat for fixing reloading issues, but I don't know if this is one of them. I use startup servlets in Struts, but I don't have my app setup for reloading. Oscar On Sat, 25 Oct 2003, Christopher Schultz wrote: All, I'm not sure exactly when this started happening, but now reloads cause all my load-on-startup servlets classes to cause the following errors: 2003-10-25 11:57:14 StandardContext[/diagnosis]: Servlet /diagnosis threw load() exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.struts.action.ActionServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891) . . . - Root Cause - java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444) . . 2003-10-25 11:57:14 StandardContext[/diagnosis]: Servlet /diagnosis threw load() exception javax.servlet.ServletException: Wrapper cannot find servlet class org.childhealthcare.diagnosis.servlet.InitServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891) . . . - Root Cause - java.lang.ClassNotFoundException: org.childhealthcare.diagnosis.servlet.InitServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444) . . Pretty much one for each of the servlets that I have listed as load-on-startup. I checked, and there's no overlap between what I have in my web application's local lib directory and what's in TOMCAT_HOME/common/lib. Does anyone have any ideas? I only started noticing this behavior this morning; I have been switching over to Struts with Velocity-Tools, so those are the last two libraries that I have added to my application. Otherwise, I'm not doing anything crazy. Thanks in advance for any help, -chris - 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: Unable to find servlet class after reload
Agreed. If you only look in the directory that apache.org links to, you'll see the main download but you won't see the hotfix. Only if you click on the binaries folder will you see it. I now mention it on my HOWTO page: http://daydream.stanford.edu/tomcat/install_web_services.html Maybe others like John Turner can add it as well. Oscar On Sat, 25 Oct 2003, David Rees wrote: Christopher Schultz wrote: Let me guess: You're running 4.1.27, right? Yep, that would be the version (apologies for not giving that in the first place). Make sure you've applied the hotfix. Stupid question: where can I download this fix? The tomcat download page doesn't give any indication that there's a fix. Thanks so much for the help. I assume that this is a common symptom of the bug that's been fixed? Download the hotfix here: http://www.apache.org/dist/jakarta/tomcat-4/binaries/ Something needs to be done about making it known that the hotfix is available! -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk 1.2 binary for Linux?
I would recommend compiling it, and it doesn't seem that there's a linux binary available for download. I will be adding JK2 tutorial (only JK1.2 for now) shortly on my site, but looking at it now and John Turner's site, you should be able to figure it out. I find that it's always a gamble using a pre-built connector anyways. http://daydream.stanford.edu/tomcat/install_web_services.html I link to John Turner's site and other helpful sites on my page. Oscar On Sat, 25 Oct 2003, Stu Statman wrote: I am unsure if I'm asking this question in the right forum, and while I did a quick look through the archives, I may be repeating a question that someone else has asked and has had answered. If so, I apologize. Someone in my org is trying to put together a development server image (Linux, Apache, Tomcat, JVM, etc.), and needs a clean binary of mod_jk. I pointed him at http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/linux/, but it turns out that there's no binary there. It's an empty directory. He and I both did some surfing around, and can't seem to spot a binary anywhere else. Do need to compile our own version of the binary? Is there someplace else I should be looking? Thanks for the help, apologies for what's probably a noob question ... Stu Statman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk 1.2 binary for Linux?
Silly me. I thought you were looking for ModJK2.0. You should have no problem. And full instructions are on my site as well. http://daydream.stanford.edu/tomcat/install_web_services.html Oscar On Sat, 25 Oct 2003, Manolo Ramirez T. wrote: Hi, I sugest that you compile the src, it's not to dificult if you now the steps, download it from here: http://apache.towardex.com/jakarta/tomcat-connectors/jk/jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz to compile (in Redhat 9): $ tar xzf XXX $ cd XXX/jk/native/ $ sh buildconf.sh $ ./configure --with-apxs=/usr/sbin/apxs $ make The binary file will be in XXX/jk/native/apache-2.0/mod_jk.so I hope this helps. Regards, _ Manolo Ramirez T. Stu Statman wrote: I am unsure if I'm asking this question in the right forum, and while I did a quick look through the archives, I may be repeating a question that someone else has asked and has had answered. If so, I apologize. Someone in my org is trying to put together a development server image (Linux, Apache, Tomcat, JVM, etc.), and needs a clean binary of mod_jk. I pointed him at http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/linux/, but it turns out that there's no binary there. It's an empty directory. He and I both did some surfing around, and can't seem to spot a binary anywhere else. Do need to compile our own version of the binary? Is there someplace else I should be looking? Thanks for the help, apologies for what's probably a noob question ... Stu Statman - 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: tomcat jitters, then hangs - please help
Have you updated the nptl-devel and glibc package for RedHat9? And are you running the stock kernel or have you built a new kernel? Are you using Apache in front of Tomcat? I have a suspicion that the stock redhat kernel does something strange with threading that a built kernel wouldn't do. I built Apache with modjk under the RH stock kernel. Then built my own kernel and Apache wouldn't load the modules anymore, and I think it's because of something weird they do with threads. Oscar On Fri, 24 Oct 2003, Ryan Lissack wrote: Hi all, Just an update on issues we were experiencing when running Tomcat on Red Hat 9. As mentioned previously in this thread, the problem appears to be with a bug in NPTL. In order to revert to standard Linux threads you can set the LD_ASSUME_KERNEL environment variable to 2.2.5 or 2.4.1 We set LD_ASSUME_KERNEL to 2.4.1 on one of our servers one week ago and, since then, have *not* had one outage, our other machine which does not have the environment variable set has had numerous outages during the period. We can confirm that this does appear to resolve the issue. I believe Noam Camiel found that setting LD_ASSUME_KERNEL to 2.2.5 also works. I would like to say a special thank you to Remy for all his help during this period. Best regards, Ryan -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 15 October 2003 14:07 To: Tomcat Users List Subject: RE: tomcat jitters, then hangs - please help Howdy, Cool, please keep us updated ;) I want these linux questions better documented in the list archives ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Noam Camiel [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 6:37 AM To: Euan Guttridge; Tomcat Users List Subject: Re: tomcat jitters, then hangs - please help Hi Euan Please note the server is now up for 48 hours strait. The change I've made is I've set LD_ASSUME_KERNEL to 2.2.5 I will update again in another 48 hours or if the server hangs, whichever comes first. Regards, Noam - Original Message - From: Euan Guttridge [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 9:42 AM Subject: FW: tomcat jitters, then hangs - please help Hi Noam, I work with Ryan on tomcat issues. I would be grateful if you would let me know if your tomcat installation is *still* up (another 24 hours) since the NPTL change as below. Regards, Euan -Original Message- From: Noam Camiel [mailto:[EMAIL PROTECTED] Sent: 14 October 2003 14:46 To: Tomcat Users List Subject: Re: tomcat jitters, then hangs - please help Hi, On Friday, October 10, 2003 11:09 AM Ryan Lissack [EMAIL PROTECTED] wrote: Remy pointed out to me previously that RH9 uses a new form of threading and based on this we have done some investigation. RH9 uses NTPL (Native POSIX Thread Library) http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/release- notes/x86/ It is possible to revert to the older form of threading, LinuxThreads, by setting an environment variable, namely: LD_ASSUME_KERNEL=kernel-version - 2.4.1 - Linuxthreads with floating stacks - 2.2.5 - Linuxthreads without floating stacks This does not revert back to an older kernel, it just changes the GNU C library used http://www-106.ibm.com/developerworks/java/library/j-jtc/ We will be testing with these settings starting today and, if we continue to have problems, we will be trying another distro. setting the LD_ASSUME_KERNEL variable, the server is now running over 24 hours strait. Still, nothing conclusive as of yet.. Ryan, thanks for the information above. Do you have move information regarding this configuration? do you still encounter problems? On Monday, October 13, 2003 9:59 PM Joe Zendle [EMAIL PROTECTED] wrote: We had the same problem w/ TC 4.1.27, sun jvm 1.4.2 and redhat 9. The thing wouldn't work for more than about 12 hours. IMHO, there are some fundamental problems with tomcat as of late. Hate to say it but we solved the problem by throwing away tomcat and using jetty! We are very pleased so far. Jetty is very fast and about 1/3 the memory footprint. Good luck. Hi Joe, Thanks for sharing the info, I am considering what you suggest as well. As a last try before moving away from Tomcat, I'm trying out the suggestion from Ryan above. Regards, Noam. - 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] This e-mail, including any attachments, is a
Re: Embedding Tomcat Continued...
Have you tried setting in your tomcat startup script? On Fri, 24 Oct 2003, Robert Charbonneau wrote: Ok, I think I have the application where it needs to be to *server* JSPs and Servlets, except it can't seem to find the java compiler. The following is a stacktrace left by the application when I tried to access http://localhost:8080/ I have the env. var JAVA_HOME set globally. Would I need to System.setProperty(java_home, pathToJDK); or something similar? Thanks in advance for the help folks. lina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:534) Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:139) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:835) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:320) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at
Re: Embedding Tomcat Continued...
Oh right. How about including /opt/java/bin/ in your path? I'm a little unclear on the embedded Tomcat scenario, but maybe you can compile things beforehand with javac and jspc directly. Oscar On Fri, 24 Oct 2003, Robert Charbonneau wrote: On October 24, 2003 12:19 pm, Oscar Carrillo wrote: Have you tried setting in your tomcat startup script? There is not startup script. I've embedded Tomcat into an application of mine. Error occurs when performing: [EMAIL PROTECTED] user]$ java com/mypackage/core/Main JAVA_HOME is set to /opt/java (where the JDK is installed) So I'm pretty confused as to why this doesn't work. -- Robert Charbonneau [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: Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris
Port 8009 should be the port that Apache tries to talk to modjk, or is it mod_jk talks to Tomcat on that port. I don't recall but you get the idea. Is your class in this location?: $TOMCAT_HOME/webapps/yourapp/WEB-INF/classes/ Oscar On Fri, 24 Oct 2003, Kengott, Dan wrote: Hi, I'm having a similar problem and can't seem to get past it. I'm currently running Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris. I've been thru the archives and I've seen a number of similar problems to mine but they haven't solved my problem. I've got the examples working as well as my own but only if I'm using the port number I've assigned with the connector 8081. Without the port number (ie. http://localhost:8081/test.helloworld.class) this fails to find the servlet, with it, it works like a champ. Also, I'm wondering why the workers.properties file specifies port 8009. Finally, it seems were really trying to get it all to work on port 80, hence the dropping of the port number 8081. Forgive my confusion as this is my first time with tomcat, apache, mod_jk. Thanks in advance for any help, Dan All related info follows: * Error generated: Clear classloader cache ... completed. I'm in the search applet Before servlet call; tablename=log_user java.lang.Exception at lib.url.URLChoiceList.init(URLChoiceList.java:37) at lib.awt.AwtSearchForm.init(AwtSearchForm.java:155) at lib.awt.AwtSearchApplet.init(AwtSearchApplet.java:19) at sun.applet.AppletPanel.run(AppletPanel.java:348) at java.lang.Thread.run(Thread.java:536) list_site=http://pandemic.itc.nrcs.usda.gov/servlet/lib.servlet.getChoices?t able=log_userobs=true IO Exception in input stream java.io.FileNotFoundException: http://pandemic.itc.nrcs.usda.gov/servlet/lib.servlet.getChoices?table=log_u serobs=true Did I get this far? Buffered Read I/O exceptionjava.lang.NullPointerException null java.lang.NullPointerException at lib.url.URLChoiceList.init(URLChoiceList.java:77) at lib.awt.AwtSearchForm.init(AwtSearchForm.java:155) at lib.awt.AwtSearchApplet.init(AwtSearchApplet.java:19) at sun.applet.AppletPanel.run(AppletPanel.java:348) at java.lang.Thread.run(Thread.java:536) * Apache access_log: 199.141.41.198 - - [24/Oct/2003:10:04:23 -0600] GET /ProbLog/probapplet .jar HTTP/1.1 304 - 199.141.41.198 - - [24/Oct/2003:10:04:24 -0600] GET /servlet/lib.servle t.getChoices?table=log_userobs=true HTTP/1.1 404 302 * Apache Error_log: [Fri Oct 24 10:04:24 2003] [error] [client 199.141.41.198] File does not exist: /usr/local/jakarta-tomcat-4.1.24/webapps/ProbLog/servlet/lib.servlet.getChoi ces * Apache mod_jk_log: [Fri Oct 24 10:04:23 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/ProbLog/probapplet.jar' [Fri Oct 24 10:04:23 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_m ap_t::map_uri_to_worker, done without a match [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_wor ker_map_t::map_uri_to_worker [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (477)]: Attempting to m ap URI '/servlet/lib.servlet.getChoices' [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_m ap_t::map_uri_to_worker, done without a match * Workers.properties: worker.list=ajp13 worker.ajp13.type=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009 ** httpd.conf: ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerType is either inetd, or standalone. Inetd mode is only support ed on # Unix platforms. # ServerType standalone # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://www.apache.org/docs/mod/core.html#lockfile) ; # you will save yourself a lot of trouble. # ServerRoot /usr/local/apache # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, in addition to the default. See also the VirtualHost # directive. # Listen 80 Listen 8080 Listen 8100 # Tomcat listens on 8081 LoadModule jk_module libexec/mod_jk.so # The mod_jk.conf file is autogenerated by tomcat each time it is starte d and # therefore very current on the
RE: Removing extra white spaces in source
Whatdoyoumean? On Fri, 24 Oct 2003, Shapira, Yoav wrote: Howdy, That depends on the definition of extra ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Luiz Ricardo [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 1:51 PM To: Tomcat-Users List Subject: Removing extra white spaces in source Hi everyone, I would like to know if someone here knows some filter that removes extra white spaces from content generated by servlet or jsp. Luiz Ricardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris
Have you tried just a simple jsp page for starters? I like to do that in case there's some class loading issues. Then you might be able to nail it down to a mod_jk issue, or a class loading issue. Oscar On Fri, 24 Oct 2003, Kengott, Dan wrote: Yes they arewith the directories corresponding to the package names within classes! -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 10:46 AM To: Tomcat Users List Subject: Re: Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris Port 8009 should be the port that Apache tries to talk to modjk, or is it mod_jk talks to Tomcat on that port. I don't recall but you get the idea. Is your class in this location?: $TOMCAT_HOME/webapps/yourapp/WEB-INF/classes/ Oscar On Fri, 24 Oct 2003, Kengott, Dan wrote: Hi, I'm having a similar problem and can't seem to get past it. I'm currently running Apache1.3.27/Tomcat4.1.24/mod_jk-1.3-eapi.so/Solaris. I've been thru the archives and I've seen a number of similar problems to mine but they haven't solved my problem. I've got the examples working as well as my own but only if I'm using the port number I've assigned with the connector 8081. Without the port number (ie. http://localhost:8081/test.helloworld.class) this fails to find the servlet, with it, it works like a champ. Also, I'm wondering why the workers.properties file specifies port 8009. Finally, it seems were really trying to get it all to work on port 80, hence the dropping of the port number 8081. Forgive my confusion as this is my first time with tomcat, apache, mod_jk. Thanks in advance for any help, Dan All related info follows: * Error generated: Clear classloader cache ... completed. I'm in the search applet Before servlet call; tablename=log_user java.lang.Exception at lib.url.URLChoiceList.init(URLChoiceList.java:37) at lib.awt.AwtSearchForm.init(AwtSearchForm.java:155) at lib.awt.AwtSearchApplet.init(AwtSearchApplet.java:19) at sun.applet.AppletPanel.run(AppletPanel.java:348) at java.lang.Thread.run(Thread.java:536) list_site=http://pandemic.itc.nrcs.usda.gov/servlet/lib.servlet.getChoices?t able=log_userobs=true IO Exception in input stream java.io.FileNotFoundException: http://pandemic.itc.nrcs.usda.gov/servlet/lib.servlet.getChoices?table=log_u serobs=true Did I get this far? Buffered Read I/O exceptionjava.lang.NullPointerException null java.lang.NullPointerException at lib.url.URLChoiceList.init(URLChoiceList.java:77) at lib.awt.AwtSearchForm.init(AwtSearchForm.java:155) at lib.awt.AwtSearchApplet.init(AwtSearchApplet.java:19) at sun.applet.AppletPanel.run(AppletPanel.java:348) at java.lang.Thread.run(Thread.java:536) * Apache access_log: 199.141.41.198 - - [24/Oct/2003:10:04:23 -0600] GET /ProbLog/probapplet .jar HTTP/1.1 304 - 199.141.41.198 - - [24/Oct/2003:10:04:24 -0600] GET /servlet/lib.servle t.getChoices?table=log_userobs=true HTTP/1.1 404 302 * Apache Error_log: [Fri Oct 24 10:04:24 2003] [error] [client 199.141.41.198] File does not exist: /usr/local/jakarta-tomcat-4.1.24/webapps/ProbLog/servlet/lib.servlet.g etChoi ces * Apache mod_jk_log: [Fri Oct 24 10:04:23 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/ProbLog/probapplet.jar' [Fri Oct 24 10:04:23 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_m ap_t::map_uri_to_worker, done without a match [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_wor ker_map_t::map_uri_to_worker [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (477)]: Attempting to m ap URI '/servlet/lib.servlet.getChoices' [Fri Oct 24 10:04:24 2003] [jk_uri_worker_map.c (599)]: jk_uri_worker_m ap_t::map_uri_to_worker, done without a match * Workers.properties: worker.list=ajp13 worker.ajp13.type=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009 ** httpd.conf: ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerType is either inetd, or standalone. Inetd mode is only support ed on # Unix platforms. # ServerType standalone # # ServerRoot: The top of the directory tree under which the server's # configuration, error
RE: Removing extra white spaces in source
I knew what you meant. I was just playing along :) I have noticed an excessive number of newlines in jsp pages though, when everything in the jsp page gets resolved. The strange thing is that whitespace shouldn't make a difference on how most things get displayed in browsers, but they often do. Oscar On Fri, 24 Oct 2003, Shapira, Yoav wrote: Howdy, It simple: what does he mean by extra white space? White space at the end of a line? White space preceding text? White space in the middle of words? This is a text-processing problem. Depending on the requirements, writing such a text processors can be trivial or highly complex. Yoav Shapira Millennium ChemInformatics -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 12:52 PM To: Tomcat Users List Subject: RE: Removing extra white spaces in source Whatdoyoumean? On Fri, 24 Oct 2003, Shapira, Yoav wrote: Howdy, That depends on the definition of extra ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Luiz Ricardo [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 1:51 PM To: Tomcat-Users List Subject: Removing extra white spaces in source Hi everyone, I would like to know if someone here knows some filter that removes extra white spaces from content generated by servlet or jsp. Luiz Ricardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Removing extra white spaces in source
Is is feasible to have Apache clean them up since I assume it has to get a text file at some point to pass along? Or even an option in mod_jk to clean it up. Oscar On Fri, 24 Oct 2003, Rick Roberts wrote: Also, the title is about white space in source, but in the message he talks about removing white space from generated jsp and servlet?? Generated servlet is a .class file and I would be very reluctant to diddle with the tomcat generated .jsp files. And I dont see the need to ever mess with those, so I don't think he really means generated files. There are several code beautifiers around if that is what he is really looking for. Shapira, Yoav wrote: Howdy, It simple: what does he mean by extra white space? White space at the end of a line? White space preceding text? White space in the middle of words? This is a text-processing problem. Depending on the requirements, writing such a text processors can be trivial or highly complex. Yoav Shapira Millennium ChemInformatics -Original Message- From: Oscar Carrillo [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 12:52 PM To: Tomcat Users List Subject: RE: Removing extra white spaces in source Whatdoyoumean? On Fri, 24 Oct 2003, Shapira, Yoav wrote: Howdy, That depends on the definition of extra ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Luiz Ricardo [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 1:51 PM To: Tomcat-Users List Subject: Removing extra white spaces in source Hi everyone, I would like to know if someone here knows some filter that removes extra white spaces from content generated by servlet or jsp. Luiz Ricardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Oscar Carrillo's HOWTO
I've recently updated my HOWTO page for installing web services in Linux. Like John Turner's the crucial packages are built from source. The following installs and configuration are described in detail and been tested in RedHat 7.3 and RedHat 9. Tomcat 4.1.27 Apache 2.0.47 Mod_JK 1.2.5 Openssl-0.9.7c Struts 1.1 JDK 1.4.2 Ant 1.5.4 Postgresql 7.3.4 PgAccess 0.98.8 http://daydream.stanford.edu/install_web_services.html In particular, I'm contemplating creating either a build script, and/or source RPMS, to install all of these packages in one fell swoop. If enough people email me with interest for such a thing I will do it. You can email me off my web page, it's at the top of the page. I'd put it here, but I try not to expose my email too much. Cheers, Oscar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Linux Kernel 2.6 and other info
Has anyone tried running Apache/Tomcat with the new 2.6-pre kernel? Or for that matter, has anyone ran it under the mm, or O1 scheduler patches? I'm also planning on running it with a dual AthlonMP system. Has anyone had any experiences with that, good or bad. I assume it should be no problem but any feedback would be appreciated. As a side note, I built Apache with a stock RH9 kernel and after compiling a new kernel, apache couldn't load the modules. I compiled it again and all was fine. But I thought it be good to post it here in case others have the problem too. Thanks, Oscar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Linux Kernel 2.6 and other info
BTW, I never have any problems with migrating from one built kernel to a newer built kernel. The only time I've ever had problems was moving from a stock RH kernel. Maybe RH stock kernel does something a little differently with threads. Of course, this is why it's better to compile from source instead of using RPMs for such crucial packages. Or should I say, that's one reason why some of us prefer installing from source. We never know exactly what RH is doing in some areas. Most of the time we don't want to know, but in something like this I feel better knowing what's going on underneath, and therefore being able to do something about it when something goes wrong. And personally I don't think or expect RH to much care about breaking Apache/mod_jk/Tomcat/Java when they want all those people to be paying for RH Enterprise and customer support. Anyways, I actually think people are better off, and helping the community, if they compile certain packages from source. I guess this turned into my 2 cents :) Oscar On Thu, 23 Oct 2003, Oscar Carrillo wrote: Has anyone tried running Apache/Tomcat with the new 2.6-pre kernel? Or for that matter, has anyone ran it under the mm, or O1 scheduler patches? I'm also planning on running it with a dual AthlonMP system. Has anyone had any experiences with that, good or bad. I assume it should be no problem but any feedback would be appreciated. As a side note, I built Apache with a stock RH9 kernel and after compiling a new kernel, apache couldn't load the modules. I compiled it again and all was fine. But I thought it be good to post it here in case others have the problem too. Thanks, Oscar - 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: IBM JRE 1.4.1 dumping core on login with http/1.0 browsers
Hmmm, I was under the impression this wasn't a problem anymore. Daniel, what RH and kernel are you running? Oscar On Thu, 23 Oct 2003, Daniel Gibby wrote: Search for Java IBM LD_ASSUME_KERNEL in google. That may be your problem. Then set an environment variable in your apache and tomcat startup scripts: export LD_ASSUME_KERNEL=2.2.5 I hope that helps. It seems to have solved my crashes. Daniel Gibby George Payne wrote: I'm having problems with the IBM 1.4.1 jvm dumping core every few days under fairly light use with tomcat 4.1.27. I'm looking for general advice (though specific advice would be even better). Should I be looking for a new JVM? Or my programming bug or misconfig? This problem appears to be directly or indirectly related to the use of old browsers. Each time it has happened (twice now), the logs (below) show that it was being accessed via http/1.0, which is fairly rare in the log files. It occurs right after or right before authentication. More info: RH 8, 2.4.20-20.8smp apache 2.0/mod_ssl mod_jk 15/03 ssl_access_log snippet: 128.104.50.121 - - [15/Oct/2003:23:16:14 -0400] GET / HTTP/1.0 200 268 128.104.50.121 - - [15/Oct/2003:23:16:18 -0400] GET /apptrack/s/myappinfo.jsp HTTP/1.0 302 0 128.104.50.121 - - [15/Oct/2003:23:16:20 -0400] GET /apptrack/login.jsp;jsessionid=D82BFF7D0F918CDB106C1A072EC2AB3D HTTP/1.0 200 4 085 128.104.50.121 - - [15/Oct/2003:23:16:22 -0400] GET /apptrack/images/applicanttracking_r2_c1.gif HTTP/1.0 200 9669 128.104.50.121 - - [15/Oct/2003:23:16:22 -0400] GET /apptrack/images/applicanttracking_leftimg.jpg HTTP/1.0 200 13065 (***CRASH***) 128.104.50.121 - - [15/Oct/2003:23:16:42 -0400] POST /apptrack/j_security_check HTTP/1.0 500 1085 128.104.50.121 - - [15/Oct/2003:23:16:55 -0400] GET /apptrack/login.jsp;jsessionid=D82BFF7D0F918CDB106C1A072EC2AB3D HTTP/1.0 500 1 085 22/03 ssl_access_log snippet: 149.199.60.202 - - [22/Oct/2003:18:28:27 -0400] GET / HTTP/1.0 200 268 149.199.60.202 - - [22/Oct/2003:18:28:28 -0400] GET /apptrack/s/myappinfo.jsp HTTP/1.0 302 0 149.199.60.202 - - [22/Oct/2003:18:28:28 -0400] GET /apptrack/login.jsp;jsessionid=E7F6276FD5958C2D224B0C182A47EB1F HTTP/1.0 200 4 085 149.199.60.203 - - [22/Oct/2003:18:28:29 -0400] GET /apptrack/images/applicanttracking_leftimg.jpg HTTP/1.0 304 0 149.199.60.202 - - [22/Oct/2003:18:28:30 -0400] GET /apptrack/images/applicanttracking_r2_c1.gif HTTP/1.0 304 0 149.199.60.203 - - [22/Oct/2003:18:28:45 -0400] POST /apptrack/j_security_check HTTP/1.0 302 0 (***CRASH***) 149.199.60.203 - - [22/Oct/2003:18:28:45 -0400] GET /apptrack/s/myappinfo.jsp HTTP/1.0 500 1085 149.199.60.203 - - [22/Oct/2003:18:28:50 -0400] GET /apptrack/login.jsp;jsessionid=E7F6276FD5958C2D224B0C182A47EB1F HTTP/1.0 500 1 085 Sections of core dump file* NULL 0SECTION TITLE subcomponent dump routine NULL === 1TISIGINFO signal 11 received 1TIDATETIMEDate: 2003/10/22 at 18:28:45 1TIFILENAMEJavacore filename: /home/tomcat/javacore.20031022.182845.3741.txt NULL 0SECTION XHPI subcomponent dump routine NULL == 1HPTIMEWed Oct 22 18:28:45 2003 1HPSIGRECV SIGSEGV received in ?? at 0x41c55e85 in /opt/IBMJava2-141/jre/bin/libjitc.so. Processing terminated. 1HPFULLVERSION J2RE 1.4.1 IBM build cxia32141-20030522 NULL 1HPOPENV Operating Environment NULL - 2HPHOSTNAMEHost : law5.(none) 2HPOSLEVEL OS Level : 2.4.20-20.8smp.#1 SMP Mon Aug 18 14:39:22 EDT 2003 2HPLIBCVER glibc Version: 2.3.2 2HPCPUSProcessors - 3HPARCH Architecture : (not implemented) 3HPNUMCPUS How Many : (not implemented) 3HPCPUSENABLED Enabled : 4 **snip ** 1XMEXCPINFOException Info NULL -- 2XMEXCPINFOJVM Exception 0x2 (subcode 0x0) occurred in thread Ajp13Processor[8009][7] (TID:0x10068790) NULL 2XMNATIVESTACK Native stack at exception generation: 3XMSTACKINFO Program Name Entry Name Statement ID 3XMSTACKINFO NULL NULL NULL 1XMTHDINFO Thread Info NULL --- NULL 2XMFULLTHDDUMP Full thread dump Classic VM (J2RE 1.4.1 IBM build cxia32141-20030522, native threads): 3XMTHREADINFO Ajp13Processor[8009][13] (TID:0x10068490, sys_thread_t:0x891A140, state:R, native ID:0x7801F) prio=5 4XESTACKTRACE at java.net.SocketInputStream.socketRead0(Native Method) 4XESTACKTRACE at
Re: Off-topic: File size check before upload
I don't think there's a very good way to do this. Here's a potential work around at this thread: http://www.jguru.com/faq/view.jsp?EID=1074628 On Thu, 23 Oct 2003, Jose Euclides da Silva Junior - DATAPREVRJ wrote: Hi guys, i know that here isnot the best place to ask something like that? But, since many developers has used the commons component for uploading file, probably someone has already deal with this situation. I would like to know if anybody has tried it with Javascript. Regards, Euclides. - 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: Oscar Carrillo's HOWTO
Sorry for the bad URL. Correction below: http://daydream.stanford.edu/tomcat/install_web_services.html Oscar On Thu, 23 Oct 2003, Oscar Carrillo wrote: I've recently updated my HOWTO page for installing web services in Linux. Like John Turner's the crucial packages are built from source. The following installs and configuration are described in detail and been tested in RedHat 7.3 and RedHat 9. Tomcat 4.1.27 Apache 2.0.47 Mod_JK 1.2.5 Openssl-0.9.7c Struts 1.1 JDK 1.4.2 Ant 1.5.4 Postgresql 7.3.4 PgAccess 0.98.8 http://daydream.stanford.edu/install_web_services.html In particular, I'm contemplating creating either a build script, and/or source RPMS, to install all of these packages in one fell swoop. If enough people email me with interest for such a thing I will do it. You can email me off my web page, it's at the top of the page. I'd put it here, but I try not to expose my email too much. Cheers, Oscar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Crashing on Linux
You might want to look at how many processes/threads are listed for tomcat and your database. You might see that one of them or both is creating and keeping too many threads around. At least that would be a start. For tomcat, I have a daemon script that has a status command that tells you all the pid's of processes for tomcat. You can get it off my web page: http://daydream.stanford.edu/tomcat/install_web_services.html You can just use the command I use for that which is on the web page also. You should do something similar for Oracle to see how many processes are in the process table. You could try and restarting the database, which would clear out connections that aren't timing out, and see if tomcat starts responding again. You say it's crashing, but is it really? It clearly has problems restarting and is not responding. But that may not be the same as crashing. Are there processes showing tomcat is still up? Oscar On Tue, 29 Jul 2003, Rick Roberts wrote: I had not seen this problem before I recently started implementing JDBCRealm on these servers. Anyone else having stability problems when using Oracle JDBCRealm? Rick Roberts wrote: Also, The only way I can clear this error is to reboot the machine. Here is another piece of info I get from catalina_log.2003-07-29.txt when I try the 2nd restart (/etc/init.d/tomcat restart) 2003-07-29 11:06:33 JDBCRealm[Standalone]: Exception closing database connection java.sql.SQLException: Io exception: Broken pipe at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269) at oracle.jdbc.driver.OracleConnection.close(OracleConnection.java:557) at org.apache.catalina.realm.JDBCRealm.close(Unknown Source) at org.apache.catalina.realm.JDBCRealm.stop(Unknown Source) at org.apache.catalina.core.ContainerBase.stop(Unknown Source) at org.apache.catalina.core.StandardService.stop(Unknown Source) at org.apache.catalina.core.StandardServer.stop(Unknown Source) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) Rick Roberts wrote: Tomcat is crashing every 2 - 3 days on 2 different Linux machines. Both machines are running pretty much identical software configurations. Both machines are serving the same web application so, it's almost certainly something in my web app code that causes the problem. However; the logs from my web app do not tell me anything. I am seeing this error on 2 different Linux machines. Tomcat just stops responding to my requests. Also when I restart Tomcat (using: /etc/init.d/tomcat restart), I get this: [EMAIL PROTECTED] root]# /etc/init.d/tomcat4 restart waiting for processes to exit [ OK ] waiting for processes to exit waiting for processes to exit waiting for processes to exit waiting for processes to exit waiting for processes to exit waiting for processes to exit waiting for processes to exit The only info from logs I can find is from catalina.out: Jul 29, 2003 10:54:06 AM org.apache.tomcat.util.net.PoolTcpEndpoint closeServerSocket SEVERE: Caught exception trying to unlock accept. java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpEndpoint.java:326) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:397) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) Jul 29, 2003
Re: Tomcat Crashing on Linux
Another thing that I do during development, with only myself accessing the site, is do things on the website that will require a database connection. I keep doing them over and over, and if more database connections are created I know something is wrong. Because since I'm the only one connecting, it should be using a member from the database pool and putting it back each time. If anything you do on the website that accesses the database, starts to cause more database connections, then members of the database pool aren't getting returned probably. Oscar On Tue, 29 Jul 2003, Rick Roberts wrote: You are correct. Crashing is the wrong way to describe it. There is a process still active in my process list. This has become frequent enough that I should be able to track it down. However; I don't know what triggers the failure. I only know that it happens every few days on both computers. Thanks for the advice I will follow it and let you know what I discover. Thanks, Rick Oscar Carrillo wrote: You might want to look at how many processes/threads are listed for tomcat and your database. You might see that one of them or both is creating and keeping too many threads around. At least that would be a start. For tomcat, I have a daemon script that has a status command that tells you all the pid's of processes for tomcat. You can get it off my web page: http://daydream.stanford.edu/tomcat/install_web_services.html You can just use the command I use for that which is on the web page also. You should do something similar for Oracle to see how many processes are in the process table. You could try and restarting the database, which would clear out connections that aren't timing out, and see if tomcat starts responding again. You say it's crashing, but is it really? It clearly has problems restarting and is not responding. But that may not be the same as crashing. Are there processes showing tomcat is still up? Oscar - 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]