mod_jk or webapp on solaris with apache2
See subject :-) This is actually a two-parter, though... 1) Which should I use? We are running apache2 and tomcat on solaris, on the same machine. The tomcat usage is fairly light (a small percentage of the total usage of the server). We've been running using apache1 and webapp for over a year now, and have been fairly happy with it. The only reason that we are moving up to apache2 is because we want to do all of our ldap authentication within apache, and pass the info along to tomcat. According to some archived postings to this list, that can only be accomplished using apache2. While we're moving however, I'm reconsidering using mod_jk2. Any thoughts? 2) Whichever one we go with, I'll probably need some kind soul to help us out with getting working binaries. I've used and admin'ed Apache+Tomcat for going on two years now, and I have *never* successfully compiled and used the apache connector module. Basically, even when I manage to get it compiled (a very tricky business) it ends up complaining about missing symbols, or just segfaulting, or Thus, everytime I've had to rely upon the kindsess of strangers to send me their working modules, and I use those. In this case, I'm using apache 2.0.47 and Tomcat 4.1.27. Apache was compiled with gcc 3.3.1, and I'm on Solaris 8/Sparc. If someone has a system vaguely resembling that setup, and wants to send me their copy of mod_webapp.so or mod_jk2.so, that would be simply wonderful. And no, the binary connector modules available from the website don't work. They don't appear to have been updated for several releases of apache, and who knows what they were compiled with... Many thanks for the great programs, and any advice/tips/pointers that you offer! -- D.A.Bishop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: binary mod_webapp.so for solaris7?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You can email them directly to me, at [EMAIL PROTECTED] That would be *very* nice of you! On Monday 30 September 2002 03:36 am, Raj Saini wrote: I have the webapps and mod_jk connectors solaris 2.7. How can I put them on the server? I tried to send through mailing list but it is too big to put here. Raj David Bishop wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 See subject :-) Anyone have one of those? I was never able to get the module to load correctly with a self-compiled version, even with Solaris 8, but the binary modules seem to work fine, when I can get them. I am running Apache 1.3.26, Solaris 7 on an ultra 60, tomcat 4.0.4. Thanks *very* much. - -- A mouse is a device used to point at the xterm you want to type in. --Kim Alm, a.s.r -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE9lLcIEHLN/FXAbC0RAs5qAKDRS0k9JH1RYWVejGOZKZ5oJ6EngQCfXujH tesH8v2Al8zEGXEjzS/S08o= =AJT9 -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - -- A mouse is a device used to point at the xterm you want to type in. --Kim Alm, a.s.r -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE9mE9UEHLN/FXAbC0RAnjeAJ9OQlkNK9X6OuzFCsr2Zg1ekWQhHgCfeqtt hznC2WUU1cFkMb8zUg8ARM4= =QwB9 -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
binary mod_webapp.so for solaris7?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 See subject :-) Anyone have one of those? I was never able to get the module to load correctly with a self-compiled version, even with Solaris 8, but the binary modules seem to work fine, when I can get them. I am running Apache 1.3.26, Solaris 7 on an ultra 60, tomcat 4.0.4. Thanks *very* much. - -- A mouse is a device used to point at the xterm you want to type in. --Kim Alm, a.s.r -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE9lLcIEHLN/FXAbC0RAs5qAKDRS0k9JH1RYWVejGOZKZ5oJ6EngQCfXujH tesH8v2Al8zEGXEjzS/S08o= =AJT9 -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Web-application not yet deployed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well, thanks to everybody's help and suggestions, I am up and running! WOOHOO!! Thanks :-) (btw, the solution was using the binary connector available through the archives. I'm thinking that should be the default response to my mod_webapp isn't working/compiling questions...) Of, course, I am still having a problem ;-) Now, when I'm trying to build a basic hello, world example, that (again!) worked in 3.2 using jdk 1.1, ant dies complaining about the following: snip compile: [javac] Compiling 1 source file to /u/wwwpe/tomcat_pedh12/webapps/akyoshin/WEB-INF/classes BUILD FAILED java.lang.UnsupportedClassVersionError: sun/tools/javac/Main (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass0(Compiled Code) at java.lang.ClassLoader.defineClass(Compiled Code) at java.security.SecureClassLoader.defineClass(Compiled Code) at java.net.URLClassLoader.defineClass(Compiled Code) at java.net.URLClassLoader.access$1(Compiled Code) at java.net.URLClassLoader$1.run(Compiled Code) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessController.doPrivileged(Compiled Code) at java.net.URLClassLoader.findClass(Compiled Code) at java.lang.ClassLoader.loadClass(Compiled Code) at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName0(Compiled Code) at java.lang.Class.forName(Compiled Code) at org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:86) at org.apache.tools.ant.taskdefs.Javac.execute(Compiled Code) at org.apache.tools.ant.Task.perform(Compiled Code) at org.apache.tools.ant.Target.execute(Compiled Code) at org.apache.tools.ant.Target.performTasks(Target.java:202) at org.apache.tools.ant.Project.executeTarget(Compiled Code) at org.apache.tools.ant.Project.executeTargets(Compiled Code) at org.apache.tools.ant.Main.runBuild(Compiled Code) at org.apache.tools.ant.Main.start(Compiled Code) at org.apache.tools.ant.Main.main(Main.java:176) My build.sh is basic, just setting JAVA_HOME, TOMCAT_HOME, and calling ant (based entirely off the examples). I can post my build.xml, if needed, but again, it's just what was working in 3.2. Ideas? Thanks tons! - -- D.A.Bishop Three people can take efficient care of a unix system as long as two of them are dead - Unknown HP-UX mailing list member -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9G4h514eKrYdPXKkRAgBgAJ0e1yQZEgyuXMHP0xaUUaKQyH8YOwCcD9ee EPAc7/Xm5bhRl0N9nsq9WzE= =VW0k -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Web-application not yet deployed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Didn't help. I should point out that I've used tomcat 3.2 for about a year, so I'm *somewhat* familiar with how it works. It's just the new mod_webapp stuff (vs. mod-jk.conf) that's confusing me/not working correctly. Is there *nothing* that I should have to do, besides that snippet from my server.xml, to deploy a web-app, so as to make it available through mod_webapp? On Wednesday 26 June 2002 01:11 pm, Keith Pemberton wrote: Make sure that you first stop both the tomcat and the httpd servers. Then, first start the tomcat server and then start the httpd server. Hope this helps! -Original Message- From: David Bishop [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 1:24 PM To: Tomcat Users List Subject: Re: Web-application not yet deployed Any ideas on this? Please help! On Tuesday 25 June 2002 10:13 am, David Bishop wrote: I am using 4.0.4. I was going to try going back to 4.0.1, as per your suggestion, however it doesn't seem to be available from the web (http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ just has back to 4.0.3). I *don't* get Segfaults in apache, though. Here's a snippet of it's log: Mon Jun 24 18:23:54 2002] [error] Re-Trying to deploy connections [Mon Jun 24 18:23:54 2002] [error] Connection webappConn cannot connect [Mon Jun 24 18:23:54 2002] [error] Cannot open connection webappConn [Mon Jun 24 18:23:54 2002] [error] Web-application not yet deployed I did get Sig11's for a little while, IIRC, it had to do with not linking to -lglibc_s. Anything else I should try? On Monday 24 June 2002 10:04 pm, Keith Pemberton wrote: What version of tomcat 4 are you using? 4.0.3 or 4.0.4? I am another person on this list have had problems with Apache 1.3.xx and tomcat4.0.3 producing the same error messages under RedHat. The solution that we came up with is to go back to the 4.0.1 series and that has worked just fine for /examples/. The default page, though, for me some of the images are garbled, which I don't know what is up with that. Look at your error_log page for apache tail -f /path/to/apache/logs/error_log and see if you get a bunch of Segmentation Fault errors when you try to access /examples/. Hope this helps! Keith -Original Message- From: David Bishop [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 5:58 PM To: [EMAIL PROTECTED] Subject: Web-application not yet deployed I'm getting 4.0 up and running (well, upgrading from 3.2) and after two days straight of downloading various things and tweaking others, I think I'm almost there. It's the almost that's the kicker :-) I have tomcat running fine, standalone, on port 8080. I have apache running fine on 80. I am using j2se 1.4, on solaris 7. Apache 1.3.26 (two birds with one stone). I have a self-compiled mod_webapp, though I had to manually add -lgcc_s to that makefile to get that working. My server.xml is based off of the server-noexamples.xml.config, with very few modifications. The following is in my httpd.conf: WebAppConnection webappConn warp pedh12.micron.com:8009 WebAppDeploy examples webappConn /examples The following is the only section that I have made changes to in the server.xml: Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=pedh12.micron.com debug=0 appBase=webapps Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=localhost debug=0 appBase=webapps unpackWARs=true Context path=/examples docBase=webapps/examples crossContext=false debug=0 reloadable=false /Context /Host /Engine /Service That bit is the only part that is black magic to me. I have *no* idea if I'm supposed to be putting the host and context tags as children to the Tomcat-Apache service tag. Basically, I guessed and added things until it started. And, it works in standalone mode (i.e., pedh12:8080/examples works). However, when I try to goto pedh12/examples, well, examples returns no such directory, etc, while /examples/ returns the Web-application not yet deployed, 404 message. Whew. That took a while :-) Any ideas? This is starting to get painful Thanks, and have a great day! - -- D.A.Bishop Three people can take efficient care
Re: Web-application not yet deployed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am using 4.0.4. I was going to try going back to 4.0.1, as per your suggestion, however it doesn't seem to be available from the web (http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ just has back to 4.0.3). I *don't* get Segfaults in apache, though. Here's a snippet of it's log: Mon Jun 24 18:23:54 2002] [error] Re-Trying to deploy connections [Mon Jun 24 18:23:54 2002] [error] Connection webappConn cannot connect [Mon Jun 24 18:23:54 2002] [error] Cannot open connection webappConn [Mon Jun 24 18:23:54 2002] [error] Web-application not yet deployed I did get Sig11's for a little while, IIRC, it had to do with not linking to - -lglibc_s. Anything else I should try? On Monday 24 June 2002 10:04 pm, Keith Pemberton wrote: What version of tomcat 4 are you using? 4.0.3 or 4.0.4? I am another person on this list have had problems with Apache 1.3.xx and tomcat4.0.3 producing the same error messages under RedHat. The solution that we came up with is to go back to the 4.0.1 series and that has worked just fine for /examples/. The default page, though, for me some of the images are garbled, which I don't know what is up with that. Look at your error_log page for apache tail -f /path/to/apache/logs/error_log and see if you get a bunch of Segmentation Fault errors when you try to access /examples/. Hope this helps! Keith -Original Message- From: David Bishop [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 5:58 PM To: [EMAIL PROTECTED] Subject: Web-application not yet deployed I'm getting 4.0 up and running (well, upgrading from 3.2) and after two days straight of downloading various things and tweaking others, I think I'm almost there. It's the almost that's the kicker :-) I have tomcat running fine, standalone, on port 8080. I have apache running fine on 80. I am using j2se 1.4, on solaris 7. Apache 1.3.26 (two birds with one stone). I have a self-compiled mod_webapp, though I had to manually add -lgcc_s to that makefile to get that working. My server.xml is based off of the server-noexamples.xml.config, with very few modifications. The following is in my httpd.conf: WebAppConnection webappConn warp pedh12.micron.com:8009 WebAppDeploy examples webappConn /examples The following is the only section that I have made changes to in the server.xml: Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=pedh12.micron.com debug=0 appBase=webapps Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=localhost debug=0 appBase=webapps unpackWARs=true Context path=/examples docBase=webapps/examples crossContext=false debug=0 reloadable=false /Context /Host /Engine /Service That bit is the only part that is black magic to me. I have *no* idea if I'm supposed to be putting the host and context tags as children to the Tomcat-Apache service tag. Basically, I guessed and added things until it started. And, it works in standalone mode (i.e., pedh12:8080/examples works). However, when I try to goto pedh12/examples, well, examples returns no such directory, etc, while /examples/ returns the Web-application not yet deployed, 404 message. Whew. That took a while :-) Any ideas? This is starting to get painful Thanks, and have a great day! - -- D.A.Bishop Three people can take efficient care of a unix system as long as two of them are dead - Unknown HP-UX mailing list member -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9GJaT14eKrYdPXKkRAmhzAJ4oxHjv/MyfVgL5QYvrad2CGrG+8wCfW2IG ea6EryxiRSYaFiJdKWLonQw= =Ve/S -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Web-application not yet deployed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm getting 4.0 up and running (well, upgrading from 3.2) and after two days straight of downloading various things and tweaking others, I think I'm almost there. It's the almost that's the kicker :-) I have tomcat running fine, standalone, on port 8080. I have apache running fine on 80. I am using j2se 1.4, on solaris 7. Apache 1.3.26 (two birds with one stone). I have a self-compiled mod_webapp, though I had to manually add -lgcc_s to that makefile to get that working. My server.xml is based off of the server-noexamples.xml.config, with very few modifications. The following is in my httpd.conf: WebAppConnection webappConn warp pedh12.micron.com:8009 WebAppDeploy examples webappConn /examples The following is the only section that I have made changes to in the server.xml: Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=pedh12.micron.com debug=0 appBase=webapps Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=localhost debug=0 appBase=webapps unpackWARs=true Context path=/examples docBase=webapps/examples crossContext=false debug=0 reloadable=false /Context /Host /Engine /Service That bit is the only part that is black magic to me. I have *no* idea if I'm supposed to be putting the host and context tags as children to the Tomcat-Apache service tag. Basically, I guessed and added things until it started. And, it works in standalone mode (i.e., pedh12:8080/examples works). However, when I try to goto pedh12/examples, well, examples returns no such directory, etc, while /examples/ returns the Web-application not yet deployed, 404 message. Whew. That took a while :-) Any ideas? This is starting to get painful Thanks, and have a great day! - -- D.A.Bishop Three people can take efficient care of a unix system as long as two of them are dead - Unknown HP-UX mailing list member -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9F6Pt14eKrYdPXKkRAhK4AJ98z8+EKwW+ct09O6JEZbYyHemHkgCfX/kQ GRSdYrQDIDQF1YEcENHLEdM= =rdvb -END PGP SIGNATURE- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
enabling all users for .jsp
I have a bunch of users that do the ~username convention to publish out of their home directory. My question is, how do I let them use .jsp without going through and manually mounting each directory? In my mod_jk.conf I have JkMount /*.jsp ajp12 which, according to my understanding, means if it has a .jsp extension, pass it to tomcat who will automagically take care of it. However, it doesn't work out that way ;-) Any attempts to his something like foo.com/~username/helloworld.jsp, results in the infamous 404 from tomcat. It appears apache is passing it over readily enough, but tomcat doesn't know how to expand ~user to /u/user/public_html. Please help, as this is the last thing I need to get going before it is working perfectly. If it matters: Solaris 7, Ultra60 Apache 1.3.14 Tomcat 3.2.3 mod_jk 3.3-b1 Thanks in advance! D.A.Bishop PGP signature
tomcat + other
Has anyone got tomcat working with any of the pike-based webservers (roxen, caudium, roxen2)? For various reasons I've been trying them out lately, but need servet/jsp support as well. Thanks, D.A.Bishop
recursive JkMount
I have some users that I'm adding mount points for, and have made the following additions: to server.xml: Context path=/bcameron docBase=/home/bcameron/public_html crossContext=false debug=3 reloadable=true /Context and to tomcat.apache: Alias /bcameron/ /home/bcameron/public_html Directory /home/bcameron/public_html Options Indexes FollowSymLinks /Directory JkMount /bcameron/servlet/* ajp12 JkMount /bcameron/*.jsp ajp12 Now, tomcat will serve any files in /home/bcameron/public_html, but not any directory below that (i.e., when trying to goto myserver.com/bcameron/foo/, apache returns a 404, even though I clicked in the link in the directory listing of /bcameron/. I assume it is because the JkMount only actually mounts the public_html directory, and not all the dirs beneath it. Is that the case, and if so, how do I tell it to respond to eveything, because there are a lot of subdirectories, and I'm not going to JkMount every one of them :-) Any help is appreciated, and I'm probably missing something stupid, but my brain is fried after days of fighting to get tomcat up and working in the first place :-( TIA, D.A.Bishop
test
testing, my subscription doesn't seem to be working. -- To me vi is Zen. To use vi is to practice zen. Every command is a koan. Profound to the user, unintelligible to the uninitiated. You discover truth everytime you use it. [EMAIL PROTECTED] [EMAIL PROTECTED]