Re: tomcat 4 mod_webapp config
[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: All, I'm having a little problem with mod_webapp (or maybe I'm not understanding this properly). I have an application deployed in catalina (v. 4b7) called laserweb (accessible via tomcat's http server port under /laserweb). I'd like to deploy this as the root of a virtual host in apache. I've configured the connector like this within the virutal host: WebAppConnection myconn warp localhost:8008 WebAppDeploy laserweb myconn / This doesn't seem to have any affect, as .jsp's, etc. are not being processed. If I pick an URI other than /, it will work. (i.e., WebAppDeploy laserweb myconn /testuri works as expected -- the webapp is available via http://myapachevirtualhost/testuri Philippe Richter just sent me a patch about this one... And AFAICS it's a good one (I didn't try it yet!) but it'll be in the next version of the module. --- wa_config.c Tue Aug 21 13:53:02 2001 +++ webapp-module-1.0-tc40b7.new/lib/wa_config.cTue Aug 21 13:44:13 2001 @@ -81,10 +81,10 @@ strncpy(buf,p,1024); l=strlen(buf)-1; if (buf[l]=='/') buf[l]='\0'; -if (buf[0]=='/') { -appl-rpth=apr_pstrcat(wa_pool,buf,/,NULL); +if (buf[0]=='/' || l==0) { + appl-rpth=apr_pstrcat(wa_pool,buf,/,NULL); } else { -appl-rpth=apr_pstrcat(wa_pool,/,buf,/,NULL); + appl-rpth=apr_pstrcat(wa_pool,/,buf,/,NULL); } /* Zero all other parameters */ Also, does the module have some way of resolving symbolic links? laserweb is symlinked into the $CATALINA_HOME/webapps directory, yet the /webapp-info/ page from my virtual host displays the actual directory location (the target of the link)---I found this a little odd. How does the module know? I don't know... It's all done in APR... I simply check if that directory exists or not... Note, the webapp-info should be _really_ disabled on any propduction server... My understanding is that using mod_webapp, tomcat virtual hosts don't matter. Is this incorrect? Can anyone shed some light on this? Nope, they don't... You can even remove the whole full first part of the server.xml (you can keep only the Tomcat-Apache engine). If you need virtualhost support, just configure them in your Apache httpd.conf, and put your WebAppDeploy lines inside your VirtualHost tags. It's all done automatically (no mod_rewrite, no auto-creation of configuration files, no nothing) Pier
Re: Configuration
Roberto B. at [EMAIL PROTECTED] wrote: VirtualHost xxx.xxx.xxx.xxx DocumentRoot /var/www/mysite.com ServerName www.mysite.com WebAppConnection conn warp localhost:8008 WebAppDeploy mysite.com conn /var/www/mysite.com /VirtualHost Your WebAppDeploy is wrong As written in the install.txt file it should be WebAppDeploy /var/www/mysite.com conn / Pier
Re: tomcat 4 datasource casting
Lin, Zhongwu at [EMAIL PROTECTED] wrote: Craig, This bring up an interesting question: In installation guide for soap 2.2, it requires that mail.jar, activation.jar etc be in CLASSPATH for Tomcat 3.2. But for Tomcat 4.0 do we put them in $CATALINA_HOME/common/lib or include these jar files in the CLASSPATH. I don't see documentation on this topic. Those (mail and activation) could either be put in your WEB-INF/lib (if only required by 1 application), or in your CATALINA_HOME/lib directory (if all of them need those jars)... I don't think they require any weird class casting/class loading Blablabla... Sometimes JDBC is a little bit overreactive :) :) :) Pier
Re: tomcat 4 mod_webapp config
[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: Pier-- Thanks for the patch. I'll give this a shot today or tomorrow and see if that does the trick. AFAICS, it should... (I'm going to put it down in CVS later today) Pier
Re: Link error with mod_webapp
Shaun Campbell at [EMAIL PROTECTED] wrote: Pier That's correct. What do I need to do now? Excuse my ignorance but compilation and linking etc is not my strong point!! Did you install Apache from an RPM, or you built it yourself? Can you send the output of httpd -l ? Pier
Re: Configuration
Roberto B. at [EMAIL PROTECTED] wrote: It doesn't work !!! It doesn't help that you're not looking at the logfiles :) I wrote WebAppDeploy /var/www/mysite.com conn / in httpd.conf but the jsp pages don't work. Did you read that there was a patch for deployinhe rooot directory of the server? D you apply it? What happens if you do something like WebAppDeploy /var/www/myste.com conn /test And then hit the site with a particular /test/test.jsp page? How can I setup the server.xml? I have to create a tag host../host Yo your server.xml EMPTY... You don¹t need to write configurations twice. Tomcat home is in /usr/tomcatb6 My sites (html and jsp file) are in /var/www/... Roberto, start looking at the log files, tooo Pier
Re: tomcat 4 mod_webapp config
[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: Pier -- The patch works fine for me -- the deploy directive works as expected when using a URI of / I am now seeing some other weirdness. In $CATALINA_HOME/conf/server.xml, this context has a jdbc resource defined with it. I'm testing access to it with a simple jsp which picks up the Context, looks up the resource, and casts to a javax.sql.DataSource. When this context is accessed via Tomcat's HTTP server port, it works fine. When I try to access it via the mod_webapp connector via apache, Context.lookup() returns a null reference. What's odd is that I tried iterating through what was bound in that context, and it does show a reference to the specified resource via tomcat http and apache. It's just that I can't successfully do the lookup() via apache. I've tried both of the syntaxes (sp?) for specifying a resource-ref in the webapp's web.xml suggested by Craig here recently. Here's what I have now: resource-env-ref descriptionlaser datasource/description resource-env-ref-namejdbc/laser_ds/resource-env-ref-name resource-env-ref-typejavax.sql.DataSource/resource-env-ref-type /resource-env-ref I don't know how the naming context would be different between the two setups, unless the Warp connector interferes somehow (I'm not familiar with its internals at all) I'm stumped. Any ideas? Well, it's definitely weird, as WARP uses the same classes of HTTP for contexts. There shouldn't be any functional difference between the two. The only thing I can possibly think of is that the two web-application instances (the one accessed thru HTTP, and the one accessed thru Apache and WARP) are different, they are _NOT_ the same instance... And this might create some problems (but I don't think so)... Craig, any hint? Pier
Re: Configuration
Roberto B. at [EMAIL PROTECTED] wrote: I setup the httpd.conf like you do. I setup the server.xml as at first installation. I deleted the log file ( of apache and tomcat) then I rebooted the system. I have seen the log after reboot and Rebooted the system? WHY? Can't you just stop-and-restart? I thought you were using Linux (Pier has an uptime of 628 days on one old Linux box in Italy!) catalina.out: Starting service Tomcat-Standalone Apache Tomcat/4.0-b6 Starting service Tomcat-Apache Apache Tomcat/4.0-b6 That's right... apache error log: [Tue Aug 21 18:52:10 2001] [notice] caught SIGTERM, shutting down [Tue Aug 21 18:54:04 2001] [error] Connection conn cannot connect [Tue Aug 21 18:54:04 2001] [error] Cannot open connection conn [Tue Aug 21 18:54:04 2001] [error] Connection conn cannot connect [Tue Aug 21 18:54:04 2001] [error] Cannot open connection conn [Tue Aug 21 18:54:04 2001] [error] Connection conn cannot connect [Tue Aug 21 18:54:04 2001] [error] Cannot open connection conn [Tue Aug 21 18:54:04 2001] [error] Connection conn cannot connect [Tue Aug 21 18:54:04 2001] [error] Cannot open connection conn [Tue Aug 21 18:54:04 2001] [error] Connection conn cannot connect [Tue Aug 21 18:54:04 2001] [error] Cannot open connection conn [Tue Aug 21 18:54:04 2001] [notice] Apache/1.3.9 (Unix) Debian/GNU configured -- resuming normal operations [Tue Aug 21 18:54:04 2001] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec) maybe the problem is the warp connector?? Ever tried doing a kill -HUP [your httpd PID goes here] That should reset the connection which (I believe) is not opened in your server since you start everything from your RC scripts (without checking if everything RUNS before running other stuff)... FWICS, the WARP connector is working perfectly... Pier
Re: Bug in ServletResponse.flushBuffer() in Tomcat 4.0b7?
Jonathan Eric Miller at [EMAIL PROTECTED] wrote: I'm having problems using ServletResponse.flushBuffer() and Tomcat 4.0b7. The following servlet demonstrates. What I want it to do is print out the title and the Test 1 line. Then, pause for 10 seconds and print out the Test 2 line. It doesn't work the first time through. However, if I then hit Refresh in my browser after going through it once, you can see clearly that it prints out the first line pauses and prints out the last line as I would expect it to. Is this a bug? Can someone else reproduce this? The reason I want to get this to work is that I have a servlet where I have a page with a Submit button on it, then on the next page, there is sometimes a few second lag while performing an update on a directory/database. I've had problems in the past where users click the Submit multiple times because they think it's stuck. Actually, it's not, it's just slow. So, what I want to do is print out at least the top part of the page so that the Submit button/previous page is no longer available for them to click on. If someone could fix this for the final version of Tomcat 4, I would greatly appreciate it. Either that or, if anyone else knows of a work around, that would be appreciated too. Thanks, Jon I just tested your servlet, and it works as expected... I get the first part, then the second part after 10 seconds... To verify that it did that correctly, I placed the compiled class in $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/SimpleServlet.class and then I did # telnet localhost 8080 Trying 127.0.0.1... Connected to localhost.betaversion.org. Escape character is '^]'. GET /servlet/TestFlush HTTP/1.0 HTTP/1.1 200 OK Content-Type: text/html Date: Tue, 21 Aug 2001 16:03:42 GMT Server: Apache Tomcat/4.0-b8-dev (HTTP/1.1 Connector) Connection: close htmlheadtitleSimpleServlet/title/headbody pTest 1/p pTest 2/p /body/html Connection closed by foreign host. # Test 1 came out as soon as I hit return twice after HTTP/1.0, and Test 2 after 10 seconds... It's the browser... Pier
Re: Configuration
Roberto B. at [EMAIL PROTECTED] wrote: Rebooted the system? WHY? Can't you just stop-and-restart? I thought you were using Linux (Pier has an uptime of 628 days on one old Linux box in Italy!) I'm more secure that nothing remains in memory.. you know.. I'm new to linux.. I was (I'm) a windows user!!! Well, UNIX != Windows... You don't need to reboot... So.. I newly rebooted the system.. before I deleted the log file. Then I have done: kill -HUP [my httpd PID] Kewl... apache error log: Quoting only the relevant parts... [Tue Aug 21 19:37:37 2001] [notice] SIGHUP received. Attempting to restart [Tue Aug 21 19:37:38 2001] [notice] Apache/1.3.9 (Unix) Debian/GNU configured -- resuming normal operations That's cool... It's restarting [Tue Aug 21 19:37:39 2001] [error] Invalid WARP protocol version 0.9 Whops.. That's your problem... You're using a 4.0b7 module with a 4.0b6 Tomcat... Easy if you know what to read... I have no more hopes to succeed to configure Tomcat... :(( You just need to have the right stuff... And consider you're working with PRE-ALPHA code (the webapp module has not yet officially been released, not even in Beta) p.s. Nobody can come to at my office!?!?!? You would loose all the fun... :) Pier
Re: Configuration
Roberto B. at [EMAIL PROTECTED] wrote: So.. I try to install Tomcat 4b7??? Do I have to build mod_webapp again??? (I have an old kernel version) Nope... Just replace only Tomcat with B7... You don't have to build anything, just download the B7 of 4.0, and keep the module you have (since that's the problem). You built it off the B7 sources (I remember that), so it should be all good... BTW, I got your binary, but what's your LIBC version (ls -la /lib/libc*) Pier
Re: Configuration
Roberto B. at [EMAIL PROTECTED] wrote: Ok I will replace the B6 with B7...but tomorrow.. now I need a long pause !!! :) output for ls -la /lib/libc* : -rwxr-xr-x1 root root 887712 Mar 26 00:35 /lib/libc-2.1.3.so lrwxrwxrwx1 root root 13 Jul 16 18:57 /lib/libc.so.6 - libc-2.1.3.so lrwxrwxrwx1 root root 17 Jul 16 18:17 /lib/libcfont.so.0 - libcfont.so.0.0.0 -rw-r--r--1 root root12332 Jul 16 18:17 /lib/libcfont.so.0.0.0 lrwxrwxrwx1 root root 17 Jul 16 18:17 /lib/libcom_err.so.2 - libcom_err.so.2.0 -rw-r--r--1 root root 5244 Jul 16 18:17 /lib/libcom_err.so.2.0 lrwxrwxrwx1 root root 19 Jul 16 18:17 /lib/libconsole.so.0 - libconsole.so.0.0.0 -rw-r--r--1 root root61224 Jul 16 18:17 /lib/libconsole.so.0.0.0 -rw-r--r--1 root root20436 Mar 26 00:35 /lib/libcrypt-2.1.3.so lrwxrwxrwx1 root root 17 Jul 16 18:57 /lib/libcrypt.so.1 - libcrypt-2.1.3.so lrwxrwxrwx1 root root 19 Jul 16 18:17 /lib/libctutils.so.0 - libctutils.so.0.0.0 -rw-r--r--1 root root18252 Jul 16 18:17 /lib/libctutils.so.0.0.0 Is't ok? Yep... So I can post your binary up on the website :) Thanks still Pier! Welcome :) Pier
[WebApp Module] New Binaries up...
Thanks to Roberto B. [EMAIL PROTECTED] for contributing some GLIBC-2.1 binaries... Now we cover (and who contributed the bin): Linux GlibC 2.2 (Craig Mc. Clanahan) Linux GlibC 2.1 (Roberto B.) Solaris 8/sparc (Me) MacOS/X 10.0 (Me) Windows (Isabella Pighi) Thanks :) Pier
Re: Tomcat3.3b1 crashes when rendering JPEGs
Hans Schmid at [EMAIL PROTECTED] wrote: Hi, we have frequent crashes when rendering JPEGs: Has anybody seen this kind of VM crash on Solaris 7? We have to restart our Tomcat every 3-4 days because of this. Our setup: Apache 1.3.19, Tomcat 3.3b1, mod_jserv which comes with JServ 1.1.2 since we still have our main part of the application running under JServ. Solaris 7 Question: Are the sources in native/mod_jserv in the Tomcat 3.3b1 distribution compatible with JServ 1.1.2? Answer: Nope :-( Pier
Re: Running Tomcat as a nonpriviledged user
Doug Sparling at [EMAIL PROTECTED] wrote: ThanksI wish this were better documented as well. I had the same trouble when I had to install JRun. Everyone said not to install as root, but it was never documented that you should even do this, let alone how. Much appreciated. Writing docco on this as we speak for TC4... Pier
Re: tomcat and proxuy cache server problem
hatim at [EMAIL PROTECTED] wrote: I believe that it's a misconfiguration of mod_backhand... Are you sure you're using the bySession candidacy function in the module, so that your sessions will stick to a particular webserver... It's a problem I'm currently trying to solve for the WebApp module, and it's not an easy trick to balance BOTH your Apache http connections and your Tomcat backhands... :( yes i used he bySession candidacy function in the module, , but they specifie in the doc that that work for PHPsession .. and not other .. Any luck trying to write your own candidacy function behaving like the bySession? do you think if i install two or three PC in cluster mod it will resolve the probleme ? Nope... :( Pier
Re: TCb7 can't find my application specific classes
S Ramakrishnan at [EMAIL PROTECTED] wrote: Env: Tomcat b7 standalone, Windows 2000 Problem: I find that Tomcat ends up looking for my application classes under the prefix org.apache.jsp. For instance, I have a class under webapps\brcat\WEB-INF\classes\Banner.class. The JSP that refers to this bean gets a compilation error: An error occurred at line: 3 in the jsp file: /login.jsp Generated servlet error: C:\tc\work\localhost\brcat\_0002flogin_jsp.java:60: Class org.apache.jsp.Banner not found. Banner banner = null; Put your Banner.class into a package, and import it from the JSP... Pier
Re: JVM and use of memory
AFAIK 3.3 doesn't have any bug related to memory (AFAIK, but I'm not developing that engine). You might want to try and downgrade down to 3.2.3 (which is the last non-beta release), or 4.0b7 which I use on several production environments and I've never seen failing for out of memory exceptions... 98% is something you don't release in your web application/jsps Pier Roy K. Mayr R. at [EMAIL PROTECTED] wrote: I not found nothing unusual... only my outputs (System.out.println() that I use for debuging my JSP pages... Roy (Mark, do you speak spanish ?) -Mensaje original- De: Mark Castillo [mailto:[EMAIL PROTECTED]] Enviado el: Lunes, 20 de Agosto de 2001 19:14 Para: [EMAIL PROTECTED] Asunto: Re: JVM and use of memory Roy, Do you have any output in the logs either from Tomcat or the JVM? -- Mark Castillo [EMAIL PROTECTED] http://www.webFreak.com - Original Message - From: Roy K. Mayr R. [EMAIL PROTECTED] To: TomcatUser [EMAIL PROTECTED] Sent: Monday, August 20, 2001 2:41 PM Subject: JVM and use of memory When I start tomcat, it process use 44M and 16M res. (aprox). But when I work, and work, and work it process use 49,52,60,80,100,120 M and crash tomcat !!! I have JSP pages that use 8 beans... then memory used it increases more quicky I'm using: Tomcat 3.3 JDK 1.3.1 Apache 1.3.20 Solaris 2.8 Help me!! Thanks. Roy
Re: JVM and use of memory
Roy K. Mayr R. at [EMAIL PROTECTED] wrote: Thanks... Last week I upgrade tomcat from 3.2.2 to 3.3 for to solve the same problem. I think that I can release memory (used by servlet or beans) from JVM I will read JSP specification. Well, if you upgraded to 3.3 to solve the problem, that tells you something... It's not the container, but the application... 3.2.2 has a release tag, 3.3 is a beta (B1 or B2)... A memory leakage wouldn't have gone out in a release tag... Pier
Re: Ken X Horn has left the building
Well, the right thing to do is NOT write to the mailing list, but write to [EMAIL PROTECTED], so that it'll be resolved by the first guy having access to the mailing lists... I'm out-of-reach of SSH right now (will be back tonight!) Pier Rob S. at [EMAIL PROTECTED] wrote: Pier!!! I am not very happy with Ken X Horn. I think i'll try to contact Tim Dawson or John Havranek. - r -- Forwarded message -- From: Ken X Horn Ken X Horn%ARCORDIA%JPMORGAN_EXTERNAL%JPMHUBDOMAIN%JPMORGAN@jpmorgan.com Date: Mon, 20 Aug 2001 14:11:09 +0100 Subject: Ken X Horn has left the building I will be out of the office from 18/08/2001 until 01/01/2099. I am no longer working at Arcordia. For Portal issues, please contact Tim Dawson or John Havranek. For non-work related (shock!), I can be contacted on [EMAIL PROTECTED] Ken.
Re: Can't stop tomcat.exe windows service
Michael Chen at [EMAIL PROTECTED] wrote: I'm running TC 4.0 (7) as a service on win2k. I just can't stop it. I've tried both the shutdown shortcut from start|program and also the shutdown script under /bin. If you're running it as a service, the only way in which you'll be able to stop Tomcat is from the services control panel... As a security precaution, when running as a Service, Tomcat will not respond to shutdown thru the network interface. Pier
Re: Can't stop tomcat.exe windows service
Michael Chen at [EMAIL PROTECTED] wrote: I did not change any of the values for the default install as service. My server tag is: Server port=8005 shutdown=SHUTDOWN debug=0 This directive is ignored when running Tomcat 4.0 as a Service. Pier
Re: Can't stop tomcat.exe windows service
Rob S. at [EMAIL PROTECTED] wrote: Hmm... the only time I've gotten that when shutting down is: 1) Ajp12 port commented out (in Tomcat 3.x) 2) Value of port changed between startup and shutdown (in TC3 and TC4) 3) Server is already shutdown =) 4) Firewall or something not allowing connections to that port. HTH! Tomcat 4.0 is different on that... We don't get network shutdowns if you're running as a service... :) Pier
Re: Running Tomcat as a nonpriviledged user
Johannes Lehtinen at [EMAIL PROTECTED] wrote: I am starting the Tomcat from /etc/rc.d/init.d/tomcat script (using it in stand-alone mode) using exec su -c $TOMCAT_HOME/bin/startup.sh tomcat. Seems all right for me, apart the exec command... But it really depends on how you installed your RC script. exec replaces the RC script with startup.sh, so, if something else is done in your RC after that line you mentioned, it won't be executed... (So, if you want to start Apache in the following line, that's not going to happen)... Apart from this non-security-related note, everything seems pretty much allright... :) :) :) Can I include it in the docs for TC4.0? With the obvious modifications, of course :) :) :) Pier
Re: tomcat and proxuy cache server problem
hatim at [EMAIL PROTECTED] wrote: Hello , im using the latest release of mod_backhand with apache 1.3.20 and with jdk1.3 and tomcat . Desciption of my architecture : i have 2 web servers that make the same work , i use mod_backhand for the loadbalancing between them . and i use workers.properties in the Tomcat configuration to allow loadballancing between the two tomcat server . i have one dns server using bind who makes Round Robin with 1 secondes TTL for the both entries ( server web 1 and server web 2 ) they are accessible from the internet under the same name www.server.com ( for ex) when a client connect for the first time in www.server.com , he is redirect to server web 1 ( for exemple ) . then a session is created (jsessionid=... )in this server , and when he makes another GET , he must be redirected to the same server web where he has a session opened . when i tried to connect from the internet to www.server.com with a direct connection , it s work very well session are always retrieved . but when i tried to surf on www.server.com using a proxy -cache server ( like squid ) to access to the internet , i have a problem with a JSP request . the client isnot redirected to the right server , so he didnt retrive his session . and i dont know why ? Any idea ? thank you from your help !! do you thing that it is possible to resolve this problem with installing a cluster for the 2 server web ? Any solution ? I believe that it's a misconfiguration of mod_backhand... Are you sure you're using the bySession candidacy function in the module, so that your sessions will stick to a particular webserver... It's a problem I'm currently trying to solve for the WebApp module, and it's not an easy trick to balance BOTH your Apache http connections and your Tomcat backhands... :( Pier
Re: Why and How Tomcat before Apache?
Martin van den Bemt at [EMAIL PROTECTED] wrote: It takes 5 minutes to write an AJP client that hacks into Tomcat. I guess that only works when the ports are bot blocked by a firewall and eg the address=127.0.0.1 is not added to the server.xml ? No, it won't. Anyway as many are using the Web Server modules to have Apache and Tomcat running on different machines (or load balancing), it's not an issue that can be lightly discarded... Not everyone was around by then... And when growing up with MS, not a lot of people are made aware of security issues, since it has nice ui to let you handle everything.. (this was sarcasme btw..).. Hope people are alarmed by the code red thing in IIS though that their systems are far from secure. If you weren't around in '98, well, not much I can do, and if you grew up with MS that's a point that doesn't plays at your advantage when talking about security. That's why it is so important to _know_ exactly what goes on on the systems before talking about security... And it's important to stress out this factor on this very mailing list. No system is secure _ever_, at least let's try not to give the wrong information to our users. IMO, on security, is better not-to-answer to a question, rather than answering it in a wrong way. Didn't read it completely but I read the security section and it's a nice overview of what can go wrong.. The problem is that not much companies have the knowledge and willing to pay someone to prevent a lot of stuff from happening. (how good is eg unix security when you run sendmail?) (I use djb stuff btw).. Well, that's why we wrote it back then in JServ days. Maby a nice security advisory should be made (just a couple of links for those issues you mentioned in your paper and some extra tips) and make that document highly noticeable.. I'm not involved in any way with the 3.x development, I was over in XML land taking care of other stuff. I got back to go on with the effort that was JServ 2.0 (later on renamed Catalina, and shipped as the servlet container of Tomcat 4.0). And in 4.0's documentation there will be a long digression about security, don't worry. You can stop crying (quoting you..) then and say that everything was done to say to the user : do something about security.. If they don't do it anyway : too bad for them.. I won't stop crying. I'm almost sure I'm right. And I am doing about security: I'm crying out loud DON'T RUN ANYTHING AS ROOT ON YOUR SERVER. Pier
Re: How can I find number of 'open files'
Ivan Markovic at [EMAIL PROTECTED] wrote: I had a problem a while back with 'too many open files'. So I checked and fix some bugs in my code and increased the limit (Solaris running on Sun Netra T1). But now the problem is back. I suspect it is a problem with my code. How can I find out how many files are 'open'? If I can track that number then I can hit my code through Tomcat and see roughly when the files are not being closed. Is there some Unix function that will allow me to monitor open files? Just a curiosity... What Tomcat version are you using? Pier
Re: Apache started...
Roberto B. at [EMAIL PROTECTED] wrote: You are joking or you say seriously? Totally serious... If I can help you... I would be happy Tell me (exactly..) the list of the things that serve !!! A copy of the mod_webapp.so binary and the output of the ldd /your/path/to/mod_webapp.so command... :) Pier
Re: Why and How Tomcat before Apache?
Roberto B. at [EMAIL PROTECTED] wrote: Is it true that it is necessary to make start Tomcat before Apache? Why?.. To appropriately set up connections and configurations... and if it is true.. how?? $CATALINA_HOME/bin/catalina start $APACHE_HOME/bin/apachectl start Easy... Pier
Re: Tomcat 4 doesn't start examples or webdav context
Did you modify the Examples application in any way? Because it's weird. I have 3 MacOS/X 10.0.4 boxes and never had one single problem... Pier Willy Faes at [EMAIL PROTECTED] wrote: Hi, I installed tomcat-4.0b7 on mac OS X and used the default server.xml and web.xml When I start tomcat this is all I get: localhost# ./bin/startup.sh Using CLASSPATH: /usr/local/jakarta-tomcat-4.0/bin/bootstrap.jar Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.0 When I point my browser to /examples this is the error message I get: HTTP Status 503 - This application is not currently available The requested service (This application is not currently available) is not currently available. I included log file and found the following error: 2001-08-17 11:12:51 StandardContext[/examples]: Exception starting filter Set Character Encoding java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1264) Can anyone tell me what is wrong here? I included the complete log file. Thanks, Willy Faes MediaTower [localhost:local/jakarta-tomcat-4.0/logs] root# cat localhost_examples_log.2001-08-17.txt 2001-08-17 11:12:46 WebappLoader[/examples]: Deploying class repositories to work directory /usr/local/jakarta- tomcat-4.0/work/localhost/examples 2001-08-17 11:12:46 WebappLoader[/examples]: Reloading checks are enabled for this Context 2001-08-17 11:12:46 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom 2001-08-17 11:12:47 StandardManager[/examples]: Seeding of random number generator has been completed 2001-08-17 11:12:49 ContextConfig[/examples]: Configured an authenticator for method FORM 2001-08-17 11:12:50 ContextListener: contextInitialized() 2001-08-17 11:12:50 SessionListener: contextInitialized() 2001-08-17 11:12:51 StandardContext[/examples]: Exception starting filter Set Character Encoding java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1264) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1113) at org.apache.catalina.core.ApplicationFilterConfig.getFilter (ApplicationFilterConfig.java:252) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (ApplicationFilterConfig.java:314) at org.apache.catalina.core.ApplicationFilterConfig.init (ApplicationFilterConfig.java:120) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java: 3038) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3337) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) at org.apache.catalina.core.StandardService.start(StandardService.java:368) at org.apache.catalina.core.StandardServer.start(StandardServer.java:473) at org.apache.catalina.startup.Catalina.start(Catalina.java:738) at org.apache.catalina.startup.Catalina.execute(Catalina.java:657) at org.apache.catalina.startup.Catalina.process(Catalina.java:178) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:202) 2001-08-17 11:12:51 StandardContext[/examples]: Context startup failed due to previous errors
Re: Tomcat port 8080, Apache port 80, jsp?
I'll have to check in the MSDN documentation what error 2140 stands for... Pier Shawn Evans at [EMAIL PROTECTED] wrote: No error messages in the Apche or tomcat logs - Original Message - From: Pier P. Fumagalli [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 5:29 PM Subject: Re: Tomcat port 8080, Apache port 80, jsp? Shawn Evans at [EMAIL PROTECTED] wrote: I read Installing mod_webapp and using it with Apache 1.3 written by you, and I have been unsuccessful in getting it to work. Here is my configuration: Win NT4.0 sp6 Apache 1.3.20 d:\webserver\Apache Tomcat 4.0.7b d:\webserver\Tomcat-4.0.7 First, I copied 'mod_webapp.so' and 'libapr.dll' to my apache\modules, then I added this to my httpd.conf [...] #AddModule mod_actions.c mod_setenvif.c mod_isapi.c AddModule mod_webapp.c [...] #LoadModule usertrack_module modules/mod_usertrack.so LoadModule webapp_module modules/mod_webapp.so [...] WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info [...] I kick Apache off as a service (Tomcat is already running as a service) and here is the error that I get Error 2140:An internal Windows NT error occurred... I am able to run Tomcat 4.0.7 as a service without Apache... and Apache runs fine when I comment out the 5 lines I added above, but I need to get them working in sequence with one another. Nothing in your error_log? That's pretty weird... What about starting it from the console? Pier
Re: mod_webapp -- NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1
Shawn, it's pointless to post the same message over and over... If me (or someone other don't reply) there is a reason... Pier Shawn Evans at [EMAIL PROTECTED] wrote: I read Installing mod_webapp and using it with Apache 1.3 written in mod_webapp, and I have been unsuccessful in getting it to work. Here is my configuration: Win NT4.0 sp6 Apache 1.3.20 d:\webserver\Apache Tomcat 4.0.7b d:\webserver\Tomcat-4.0.7 First, I copied 'mod_webapp.so' and 'libapr.dll' to my apache\modules, then I added this to my httpd.conf [...] #AddModule mod_actions.c mod_setenvif.c mod_isapi.c AddModule mod_webapp.c [...] #LoadModule usertrack_module modules/mod_usertrack.so LoadModule webapp_module modules/mod_webapp.so [...] WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info [...] I kick Apache off as a service (Tomcat is already running as a service) and here is the error that I get Error 2140:An internal Windows NT error occurred... I am able to run Tomcat 4.0.7 as a service without Apache... and Apache runs fine when I comment out the 5 lines I added above, but I need to get them working in sequence with one another. Plus, there are no error messages in the log files. Shawn
Re: mod_webapp -- NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1
Since Apache 1.3.20 also under windows modules are called .so and not .dll (it was confusing!) Pier David Oxley at [EMAIL PROTECTED] wrote: Isn't the .so file only for unix. You need mod_webapp.dll Dave -Original Message- From: Shawn Evans [mailto:[EMAIL PROTECTED]] Sent: 17 August 2001 15:12 To: [EMAIL PROTECTED] Subject: mod_webapp -- NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1 I read Installing mod_webapp and using it with Apache 1.3 written in mod_webapp, and I have been unsuccessful in getting it to work. Here is my configuration: Win NT4.0 sp6 Apache 1.3.20 d:\webserver\Apache Tomcat 4.0.7b d:\webserver\Tomcat-4.0.7 First, I copied 'mod_webapp.so' and 'libapr.dll' to my apache\modules, then I added this to my httpd.conf [...] #AddModule mod_actions.c mod_setenvif.c mod_isapi.c AddModule mod_webapp.c [...] #LoadModule usertrack_module modules/mod_usertrack.so LoadModule webapp_module modules/mod_webapp.so [...] WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info [...] I kick Apache off as a service (Tomcat is already running as a service) and here is the error that I get Error 2140:An internal Windows NT error occurred... I am able to run Tomcat 4.0.7 as a service without Apache... and Apache runs fine when I comment out the 5 lines I added above, but I need to get them working in sequence with one another. Plus, there are no error messages in the log files. Shawn
Re: Tomcat before Apache
Roberto B. at [EMAIL PROTECTED] wrote: I use Linux/Debian as root, Apache 1.3 and Tomcat 4 b6 I want to start automatically Tomcat before Apache. I made this things : 1) I created this script named tomcat: #! /bin/sh TOMCAT_HOME=/usr/tomcat4b6 # Test tomcat.sh if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ] then echo Tomcat not found exit fi case $1 in start) # Start service $TOMCAT_HOME/bin/startup.sh echo -ne Tomcat started \n ;; stop) $TOMCAT_HOME/bin/shutdown.sh ;; esac 2) I insert this script in dir /etc/init.d 3) chmod u+x tomcat 4) in /etc/rc2.d (because default runlever is 2 in file inittab) this command (because i have @S91apache): ln -s ../init.d/tomcat S90tomcat 5) I rebooted the system and this is the result: : : etc/init.d/rc: /etc/rc2.d/S90tomcat: No such file or directory apache started : Why?? Darn... It's not $TOMCAT_HOME/bin/startup-shutdown.sh.. It's $CATALINA_HOME/bin/catalina [start-stop] Read the docs... Pier
Re: Tomcat before Apache
Guys. If you wanted to scare the hell out of me, you succeeded... ARE WE GOING TO SUGGEST TO OUR USERS TO RUN TOMCAT AS ROOT? ARE YOU ALL NUTS? Ok, it's good code, but I wouldn't trust not even my mother with root access on my machine... Starting it from the RC scripts will mean that TOMCAT is called as root I'm attaching a little C script that degradates the process to a specified user before execuing it. To compile do gcc -O2 safexec.c -o safexec and to run, (for example catalina) do: safexec username $CATALINA_HOME/bin/catalina.sh start It's written for Solaris, but it should work also on Linux (maybe some compilation warning of some kind)... DO NOT INSTALL IT W/ SUID PRIVILEGES, otherwise anyone will be able to break into your machine _easily_... 'K? Let's try to be a LITTLE BIT security conscious here... Pier (in these days turned into a security freak!) --- This is safexec.c: - #include sys/types.h #include unistd.h #include string.h #include errno.h #include stdio.h #include pwd.h int main(int argc, char *argv[]) { struct passwd *user=NULL; char **args=NULL; int x; if (argc3) { fprintf(stderr, Usage: %s [user] [command] [...]\n,argv[0]); return(1); } user=getpwnam(argv[1]); if (setgid(user-pw_gid)!=0) { fprintf(stderr, %s cannot set requested user/group id\n, argv[0]); return(2); } if (setuid(user-pw_uid)!=0) { fprintf(stderr, %s cannot set requested user/group id\n, argv[0]); return(2); } args=(char **)malloc((argc-1)*sizeof(char *)); for (x=2; xargc; x++) args[x-2]=argv[x]; args[argc-1]=NULL; execvp(argv[2], args); fprintf(stderr, %s: %s: %s\n, argv[0], argv[2], strerror(errno)); } --- End of safexec.c: --
Re: Tomcat 4 doesn't start examples or webdav context
Rob S. at [EMAIL PROTECTED] wrote: Did you modify the Examples application in any way? Because it's weird. I have 3 MacOS/X 10.0.4 boxes and never had one single problem... omg! I've figured out why Cali is running out of power! =) Nope, you didn't... I live in London (UK!) :) :) :) Pier
Re: Working: mod_webapp -- NT4, Tomcat 4.0.7, Apache 1.3.20,JDK 1.3.1
Shawn Evans at [EMAIL PROTECTED] wrote: Sorry if it seems as if I reposted it, I was having trouble with the office machine, so I sent it out under a new subject, since it was different than the one I posted before... when I ran Apache from the command line with the webapp modified conf here is what I get. D:\webserver\ApacheApache Syntax error on line 176 of d:/webserver/apache/conf/httpd.conf: Cannot add module via name 'mod_webapp.c': not in list of loaded modules took that line out and it works... I can see webapp-info and IT WORKS ... INSTALL.txt [..] *- Another note for Windows: copy also the libapr.dll file with the module, or your Apache 1.3 web server will refuse to start reporting that the WebApp module cannot be loaded. Once you have done that, edit your httpd.conf configuration file and add a few lines to load that module at startup (Windows users, read above, you have to replace libexec with modules - I'm paranoid, sorry): LoadModule webapp_module libexec/mod_webapp.so and AddModule mod_webapp.c [ DO NOT ADD THIS TO WINDOWS ] -* Thanks for the help Shawn This is surely weird... I have that in my configuration file on my Windows box... :) Well, I'll try to dig into the code to see what mod_so does when it tries to load the module. Right now I'll update the documentation a little bit... Thanks for noticing... :) Pier
Re: mod_webapp performace issues... NT4, Apache 1.3.20, Tomcat4.0.7, JDK 1.3.1
Hmm... This is a good one... The support for Win32 was added only for B7, so, I bet there are some problems, still. Can you file a bug at http://nagoya.apache.org/bugzilla (so we can track it?)... How does it handle when you don't BANG the server? But use it normally? Pier Shawn Evans at [EMAIL PROTECTED] wrote: Since I finally got the mod_webapp working, I have been banging on the machine. Tomcat is solid when I access it from port 8080, and Apache screams like it should... but when I access Tomcat thru mod_webapp (examples) I get random errors and even hello world doesn't work... sometimes Apache access.log 216.174.11.51 - - [17/Aug/2001:14:59:22 -0400] GET /examples/servlets/index.html HTTP/1.1 304 0 216.174.11.51 - - [17/Aug/2001:14:59:22 -0400] GET /examples/images/execute.gif HTTP/1.1 304 0 --216.174.11.51 - - [17/Aug/2001:14:59:22 -0400] GET /examples/images/return.gif HTTP/1.1 500 305 --216.174.11.51 - - [17/Aug/2001:15:01:20 -0400] GET /examples/servlet/HelloWorldExample HTTP/1.1 500 305 --216.174.11.51 - - [17/Aug/2001:15:01:21 -0400] GET /examples/images/return.gif HTTP/1.1 500 316 --216.174.11.51 - - [17/Aug/2001:15:01:21 -0400] GET /examples/images/code.gif HTTP/1.1 500 325 --216.174.11.51 - - [17/Aug/2001:15:01:21 -0400] GET /examples/images/code.gif HTTP/1.1 500 0 error.log --[Fri Aug 17 14:59:22 2001] [error] (null) --[Fri Aug 17 15:01:20 2001] [error] (null) --[Fri Aug 17 15:01:21 2001] [error] Invalid packet 16 --[Fri Aug 17 15:01:21 2001] [error] Communitcation interrupted --[Fri Aug 17 15:01:21 2001] [error] Communitcation interrupted Tomcat apache_log.2001-08-17.txt 2001-08-17 14:59:22 WarpEngine[Apache]: Mapping request 2001-08-17 14:59:22 WarpHost[216.174.11.51]: Mapping request for Host 2001-08-17 14:59:22 WarpEngine[Apache]: Mapping request 2001-08-17 14:59:22 WarpHost[216.174.11.51]: Mapping request for Host 2001-08-17 14:59:22 WarpEngine[Apache]: Mapping request 2001-08-17 14:59:22 WarpHost[216.174.11.51]: Mapping request for Host 2001-08-17 14:59:22 WarpEngine[Apache]: Mapping request 2001-08-17 14:59:22 WarpHost[216.174.11.51]: Mapping request for Host 2001-08-17 14:59:22 WarpEngine[Apache]: Mapping request 2001-08-17 14:59:22 WarpHost[216.174.11.51]: Mapping request for Host 2001-08-17 15:01:20 WarpEngine[Apache]: Mapping request 2001-08-17 15:01:20 WarpHost[216.174.11.51]: Mapping request for Host 2001-08-17 15:01:20 org.apache.catalina.INVOKER.HelloWorldExample: init 2001-08-17 15:01:20 InvokerFilter(ApplicationFilterConfig[name=Servlet Mapped Filter, filterClass=filters.ExampleFilter]): 47 milliseconds 2001-08-17 15:01:20 InvokerFilter(ApplicationFilterConfig[name=Path Mapped Filter, filterClass=filters.ExampleFilter]): 47 milliseconds 2001-08-17 15:01:21 WarpEngine[Apache]: Mapping request 2001-08-17 15:01:21 WarpHost[216.174.11.51]: Mapping request for Host 2001-08-17 15:01:21 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.net.SocketException: Connection aborted by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:62) at org.apache.catalina.connector.warp.WarpConnection.send(WarpConnection.java:2 18) at org.apache.catalina.connector.warp.WarpResponse$Stream.close(WarpResponse.ja va:301) at org.apache.catalina.connector.warp.WarpResponse$Stream.finish(WarpResponse.j ava:311) at org.apache.catalina.connector.warp.WarpResponse.finishResponse(WarpResponse. java:152) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:213) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19 4) at java.lang.Thread.run(Thread.java:484) Thanks, Shawn
Re: Why and How Tomcat before Apache?
Martin van den Bemt at [EMAIL PROTECTED] wrote: down your server or delete your webapp or other data. You don't solve that problem with running as a seperate user.. Tomcats ports are not visible from the outside. Only access is through apache - ie mod_jk ... do a telnet to your port 8007 or 8009 and you'll see what I mean.. It takes 5 minutes to write an AJP client that hacks into Tomcat. We started saying this in 1998, when we released Apache JServ 1.0 and I cry to see that still today people do not think about it... (BTW, in AJP version following the original, the authentication mechanism was disabled because of performance issues - and because I wasn't there when they designed those) Check out http://www.apache.org/~stefano/papers/ in the 1998 section. (Both of them are quite nice readings, or at least I hope it will be as nice as it was writing them) Pier
Re: Why and How Tomcat before Apache?
Li, Jerry at [EMAIL PROTECTED] wrote: Hi, All: Your help is highly appreciated for the following questions. 1. Does Tomcat have web-based administration functionality? We want to let the Tomcat administrator start/stop Tomcat through a Web-based interface. I have searched the mail archives, and found somebody starting working on it in April. Is it available now? If yes, where could I get it? The web-based interface is not available yet, unless you're not talking about Tomcat 4.0's manager web application (it's in the distribution). I never tried it, anyway I wouldn't trust shutting down an instance of Tomcat thru HTTP... Also if you shut down your servlet engine using a servlet, I believe you won't be able to start it back up with the same servlet engine :) :) :) 2. where is the right location to put properties files Our application uses a single properties file: system.properties. We have found that we have to put system.properties into WEB-INF/classes, otherwise, Tomcat could not find it. We have tried to put it into WEB-INF/lib and put WEB-INF/lib into tomcat's classpath ( the classpath in tomcat.bat under tomcat_home/bin), but tomcat still could not find it. However, if put it into WEB-INF/classes, tomcat will find it. And that's correct. WEB-INF/classes is it's right location. Tomcat 4.0 even ignores your CLASSPATH environment setting... Is there a problem in leaving it there? (BTW, read the servlet specification for that!) Pier
Re: jakarta NT service
Edward Dunkle at [EMAIL PROTECTED] wrote: Would it be possible to provide an installation parameter such that the default startup mode is Automatic AND/OR, more importantly that it would ignore the CTRL_LOGOFF_EVENT? I want Tomcat to startup when the machine boots up and NOT require someone to logon. And I certainly don't want it to shutdown just because the user logs off. For TC4.0 this will be available in few weeks... For jk_nt_service.exe (the one distributed with mod_jk) I believe they fixed it, but I'm not sure, as I don't follow their development :) Pier
Re: Help Installing Tomcat on Win95
Rob S. at [EMAIL PROTECTED] wrote: I should add that I tried changing the port number in the server.xml file inside conf folder as mentioned in the RUNNING.txt. Also checked and made sure that the browser is not trying to access a proxy server. But it hasn't worked. Thanks, Sheila ?! This brings a joyous tear to my eye! =~) Someone has read the documentation and acted upon it. Sheila, you've made my day! So your Tomcat has started at 8080 and http://localhost:8080/ doesn't do the trick... Did you check the log files ($CATALINA_HOME/logs) for any activity when you make a request? If nothing at all appears in those files, I don't think the request is getting there. Another good test on Windows is to try to send your request to http://127.0.0.1:8080/ as sometimes Windows forgets about the meaning of localhost (I believe it was EXACTLY Win95, and was later fixed on Win98). And, BTW, Rob, stop trying to hit on girls on the mailing list :) :) :) :) I tried it in the past, doesn't work! :) :) :) :) Pier
Re: Help Installing Tomcat on Win95
Sheila Ratnam at [EMAIL PROTECTED] wrote: Rob, Pier, I noticed the following error logged in apache.log file. 2001-08-17 20:42:46 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:424) at java.net.ServerSocket.implAccept(ServerSocket.java:246) at java.net.ServerSocket.accept(ServerSocket.java:225) at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:554) at java.lang.Thread.run(Thread.java:484) As you correctly expected, the CATALINA_HOME_Log file is empty. How can I correct this? Err... That's the log for the Apache service... Not the one we're looking for... :) Hrmmm... Are you sure you didn't screw up and typed http://localhost:8008/ Instead of http://localhost:8080/ That's the only thing I can possibly think of... Pier
Re: Help Installing Tomcat on Win95
Sheila Ratnam at [EMAIL PROTECTED] wrote: Pier, I did try using the ip address instead of 'localhost', but it didn't work. Probably the error is what the log shows? That shouldn' even happen as you shouldn't access the WarpConnector at all, unless, of course, something's _really_ wrong... Pier
Re: Installing Tomcat 4 with Apache
Roberto B. at [EMAIL PROTECTED] wrote: How I can Install Tomcat 4 to read jsp file and Apache to read HTML = files?? It's a feature I'm going to add as soon as I'm done with some security works on our servers (darn!) Pier
Re: Step by Step
Roberto B. at [EMAIL PROTECTED] wrote: Still excused for the disturbance, but as you see I am new in this interesting development environment!! So.. 1) I have installed Apache and some Virtual Host 2) I have installed Tomcat 4 b7 and it runs on port 8080 3) and now??? in the virtual host i want to run HTML files with apache and JSP/servlet with Tomcat but... - what is mod_webapp ... maybe it permit the execution of servlet ??? - what is mod_jk.so ??? If you download the mod_webapp binaries there are step-by-step installation instruction... Damn... At least try before crying :) :) :) :) Pier
Re: web_apps problem
Roberto B. at [EMAIL PROTECTED] wrote: 1) I have installed Apache and some Virtual Host 2) I have installed Tomcat 4.0 b7 and it runs on port 8080 in the virtual host I want to run HTML files with apache and JSP/servlet with Tomcat so... I have copied mod_webapp.so in the apache lib directory but when I wrote apachectl configtest I received: Syntax error on line 108 of /etc/apche/httpd.conf Cannot load /usr/lib/apache/1.3/mod_webapp.so into server: /lib/libc.so.6: version 'GLIBC_2.2' not found (required by /usr/lib/apache/1.3/mod_webapp.so) What means this? It means that you don't have the Linux GLIBC version 2.2. You must be running an old version of Linux. Two options: either you upgrade your Linux box, or you download the sources, follow the README and build a new mod_webapp.so. Pier
Re: Error in APR
Roberto B. at [EMAIL PROTECTED] wrote: I have a linux/Debian system 1) I have installed Apache and some Virtual Host 2) I have installed Tomcat 4.0 b7 and it runs on port 8080 in the virtual host I want to run HTML files with apache and JSP/servlet with Tomcat. Since I do not have the glibc_2.2 I build the webapp module and I followed the readme included in the source files. When I run this command: cvs -d :pserver:anoncvd@ \ checkout apr I receive this: cvs checkout: in directory apr: cvs checkout: cannot opern CVS/Entries for reading: No such file or directory cvs [checkout aborted]: cannot write CVS/Template file: No such file or directory if I ignore this and try support/buildconf.sh I receive that autoconf is not a command If you download the sources from this URL http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b7/src/weba pp-module-1.0-tc40b7.src.tar.gz All you have to do is start from when it says ./configure... You don't have to update anything... Pier
Re: Error in APR
Pier P. Fumagalli at [EMAIL PROTECTED] wrote: Roberto B. at [EMAIL PROTECTED] wrote: I have a linux/Debian system 1) I have installed Apache and some Virtual Host 2) I have installed Tomcat 4.0 b7 and it runs on port 8080 in the virtual host I want to run HTML files with apache and JSP/servlet with Tomcat. Since I do not have the glibc_2.2 I build the webapp module and I followed the readme included in the source files. When I run this command: cvs -d :pserver:anoncvd@ \ checkout apr I receive this: cvs checkout: in directory apr: cvs checkout: cannot opern CVS/Entries for reading: No such file or directory cvs [checkout aborted]: cannot write CVS/Template file: No such file or directory if I ignore this and try support/buildconf.sh I receive that autoconf is not a command If you download the sources from this URL http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b7/src/weba pp-module-1.0-tc40b7.src.tar.gz All you have to do is start from when it says ./configure... You don't have to update anything... I just updated the README.txt file to avoid any confusion: Check out: http://cvs.apache.org/viewcvs.cgi/~checkout~/jakarta-tomcat-connectors/webap p/README.txt?rev=1.14content-type=text/plain Pier
Re: Tomcat User list - NNTP?
Chris Gross at [EMAIL PROTECTED] wrote: Is there a usenet group that mirrors this list? Or another way to browse this list using my newsgroup reader? Nope... Not yet... Pier
Re: Error in APR
Roberto B. at [EMAIL PROTECTED] wrote: Thanks... However in Debian is necessary to write: bash configure --with-apxs --with-apxs means build the apache 1.3 module (as in the README) and to have obviously autoconf and libtool v 1.3.3 or newer Autoconf is needed (yeah) for APR , and libtool, well, for both... Pier
Re: Apache started...
Roberto B. at [EMAIL PROTECTED] wrote: I have compiled successfully the mod_webapp. I downloaded the source in a temporary dir. I copied the mod_webapp in the lib directory of Apache and now.. that apache started.. can I delete the temporary dir?? Yeah, as soon as you send me the binary :) (Privately, attach it to a msg)... Can you also do an ldd /path/to/your/mod_webapp.so and send me that one too? Pier
Re: Tomcat port 8080, Apache port 80, jsp?
Craig R. McClanahan at [EMAIL PROTECTED] wrote: Other files in this directory contain the compiled connector for other platforms (Linux, MacOSX, and Solaris/SPARC for now). Linux w/ GLIBC 2.2 Solaris 8/sparc (just a couple of details! :) Pier
Re: Tomcat port 8080, Apache port 80, jsp?
Shawn Evans at [EMAIL PROTECTED] wrote: I read Installing mod_webapp and using it with Apache 1.3 written by you, and I have been unsuccessful in getting it to work. Here is my configuration: Win NT4.0 sp6 Apache 1.3.20 d:\webserver\Apache Tomcat 4.0.7b d:\webserver\Tomcat-4.0.7 First, I copied 'mod_webapp.so' and 'libapr.dll' to my apache\modules, then I added this to my httpd.conf [...] #AddModule mod_actions.c mod_setenvif.c mod_isapi.c AddModule mod_webapp.c [...] #LoadModule usertrack_module modules/mod_usertrack.so LoadModule webapp_module modules/mod_webapp.so [...] WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info [...] I kick Apache off as a service (Tomcat is already running as a service) and here is the error that I get Error 2140:An internal Windows NT error occurred... I am able to run Tomcat 4.0.7 as a service without Apache... and Apache runs fine when I comment out the 5 lines I added above, but I need to get them working in sequence with one another. Nothing in your error_log? That's pretty weird... What about starting it from the console? Pier
Re: Re[2]: restriction on number of logon tries
Gordon Hollenbeck at [EMAIL PROTECTED] wrote: Dear, can someone send me their httpd.conf file with Tomcat/HTTPS integration? I want apache to use tomcat for servlet handling much like it handles PHP... I am using tomcat 4.0-b7. Read the INSTALL.txt coming with the webapp module... It's pretty straightforward. Pier
Re: install.txt
Gordon Hollenbeck at [EMAIL PROTECTED] wrote: Dear Pier, Thursday, August 16, 2001, 4:36:21 PM, you wrote: PPF Gordon Hollenbeck at [EMAIL PROTECTED] wrote: Dear, can someone send me their httpd.conf file with Tomcat/HTTPS integration? I want apache to use tomcat for servlet handling much like it handles PHP... I am using tomcat 4.0-b7. PPF Read the INSTALL.txt coming with the webapp module... It's pretty PPF straightforward. there isnt an install.txt anywhere in the distrobution... im running 4.0 beta 7... Did I say in the TOMCAT distribution? :) :) You have to download the webapp module from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b7/bin or http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b7/src (if you want to compile it yourself) and then in that distribution there's a nice INSTALL.txt Pier
Re: Tomcat 4 as a service under Linux
Alejandro Arredondo at [EMAIL PROTECTED] wrote: How can I add tomcat to run as a service under Linux and to work with apache?. I saw the script that starts apache at boot time and looks pretty confusing. Is there any way to add tomcat to that script to start before apache? Thanks in advance Be sure JAVA_HOME is set into your catalina.sh script and then link it down to your rc.d directory. Pier
Re: Are many people running Tomcat 4 in standalone mode?
Craig R. McClanahan at [EMAIL PROTECTED] wrote: On Fri, 17 Aug 2001, Dmitri Colebatch wrote: On Thu, 16 Aug 2001, Rob S. wrote: files. For personal sites, I would run standalone. It's less of a hassle to configure and maintain. and run tomcat as root or run a squid accelerator? With Tomcat 4 you won't have to run as root to use port 80. Thus the only technical reason (leaving aside performance for the moment) is if your application requires other functionality that is built in to Apache but not Tomcat). Even in stand alone mode, there _will_ be a JVM wrapper allowing to run non-as-root and bind to port 80 (you can try it out, it's in the jakarta-tomcat-service CVS repo)... Or, you can use mod_webapp and Apache :) Pier
Re: Tomcat 4.0 and IIS
Patrick Peralta at [EMAIL PROTECTED] wrote: Hello List, I've looked around on the website and mail list archives, but I can't seem to find out how to set up IIS to redirect to Tomcat 4.0. I've read this document: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html but it's for 3.3. It does not appear to apply to 4.0. Can anyone point me to documentation that gives directions on how to do this? You can't use TC4.0 w/ IIS (yet!)... :) Pier
Re: I can't get TOMCAT 4b6 and IIS5 to work over SSL
Curtis Dougherty at [EMAIL PROTECTED] wrote: I have Tomcat 4b6 IIS 5 Win2K I have the redirect working...I think I have an SSL Certificate installed and working on my Win2K box When I request the INDEX.JSP page from my site https://mysite.someplace.com/fooey I GET the file AND I see the SSL icon on the browser but the ONLY thing my stupid browser shows is the UNCOMPILED JSP CODE Why is that? When I point my browser to http://mysite.someplace.com:8080/fooey I GET COMPILED JSP code that RUNS. What am I doing wrong - Besides running IIS5 (the suits made me do it). I don't quite get how IIS 5 gets into the picture... Pier
Re: Tomcat embedded in Apache
Kemp Randy-W18971 at [EMAIL PROTECTED] wrote: I found an article at http://www.linuxdevices.com/articles/AT7102892618. The article says this Apache 2.0 -- This is still in alpha now, with beta and final releases due at monthly intervals. It is faster and runs on more operating systems with the same level of stability as on Unix, and also supports dynamically loadable modules better. The Tomcat Java engine is built-in, enabling Apache to natively run Java Servlets and Java Server Pages. Does that mean that the Tomcat engine will be part of the Apache download? Nope... Pier
Re: Newbie help needed: installing TOMCAT on linux
Dave Lopez at [EMAIL PROTECTED] wrote: How can I configure tomcat and apache to run on my redhat 7.1? thanks... Read the documentation? It could help sometimes.
Re: ISAPI Filter
Dave Finch at [EMAIL PROTECTED] wrote: Does anyone know where I can get the source code for the ISAPI filter? What ISAPI filter? Mod_jk? They're in CVS. Pier
Re: CATALINA_HOME vs. TOMCAT_HOME
Dennis Doubleday at [EMAIL PROTECTED] wrote: At 01:03 PM 8/14/01, you wrote: On Tue, 14 Aug 2001, Dennis Doubleday wrote: These two environment variable names seem to be used interchangeably in various installation documents and discussions. Are they in fact interchangeable (i.e. I can set one or the other and it doesn't matter which)? No, you need to use TOMCAT_HOME for Tomcat 3.x and CATALINA_HOME for Tomcat 4.x. Thanks. The release notes for 4.0b6 contain a number of TOMCAT_HOME references. Correct... And I found it also in other places: webapps, documentation and so on... Should we change them? Also, for the release notes, should we change only the LAST, or all of them? Pier
Re: war files. (tomcat 4.0 beta 7)
James, Stuart at [EMAIL PROTECTED] wrote: I have packaged my web application in a .war file and deployed it using tomcat 4.0 beta 7. perfect. The only way I could get it to work was to copy my database jar files into web-inf\lib, this would make my war file platform dependent as most database vendors ship different jars for each operating system. I tried them in the %CATALINA_HOME%\lib but that did not help. suggestions / recommendations. I _believe_... It's not %CATALINA_HOME%\lib, but %CATALINA_HOME%\common\lib But I might be wrong... Pier
Re: Tomcat crashes simultaneous more connection above 990+
Santosh Pasi at [EMAIL PROTECTED] wrote: Hi Jeff, Thanks for your reply. And good link, really useful. Here are results of our troubleshoot :( On PIII 600, 256 Mb RAM, IDE Harddisk, RedHat Linux - total no. of max. connection 990-1000 and finally tomcat crashes. But still apache, ldap and other applications are still running perfectly ok. You'll never handle 10.000 connections on this thing... Get a decent operating system and more ram :). If you're using native threads, there's a limit of processes the kernel can spawn (and since threads are processes on linux, you might be hitting that limit), and a limit on the number of file descriptors open system-wide (and that's the other one you might be hitting), or file descriptors open per-process (1024, so pretty close to what you're observing, I believe that's it). On RS/6000, AIX 4.3, 1000Gb RAM, etc Total no. of max. connection 1600-2000 and finally reponse time increases specially from tomcat. But still apache, ldap and other applications are still running perfectly ok. Dunno anything about AIX... But if response time increases, I believe it's because you're using green threads, and the JVM slice takes more time to figure out what green thread is active and what is not, rather than serving requests... Try native threads... Pier
Re: Integrating Tomcat with Other Servers
Brandon Cruz at [EMAIL PROTECTED] wrote: Is there a list anywhere of Web Servers that Tomcat can integrate with? I know it can link to Apache, IIS, and Netscape. What about things like Novell, Domino, etc.? A link to any page would be appreciated! Does no answer mean that a list of this type is not available? Correct... What version of Tomcat? Pier
Re: wrapper: Java Virtual Machine crashed
Singh, Rakesh at [EMAIL PROTECTED] wrote: Hi Folks: I know this is probably asking to much from your side. I am pretty much exhausted from my resources, I don't know where is the problem. I put the log level to debug and see that when I start Apache which automatically also starts the JVM, JVM crashes. the mod_jserv.log shows that error. (INFO) wrapper: Shutdown done (PID=711) (INFO) Apache Module was cleaned-up (INFO) wrapper: Java Virtual Machine started (PID=754) (INFO) wrapper: controller started (PID=711) (INFO) wrapper: Java Virtual Machine crashed (INFO) wrapper: Java Virtual Machine started (PID=681) (INFO) wrapper: Java Virtual Machine crashed (INFO) wrapper: Java Virtual Machine started (PID=741) (INFO) wrapper: Java Virtual Machine crashed (INFO) wrapper: Java Virtual Machine started (PID=821) (INFO) wrapper: Java Virtual Machine crashed (INFO) wrapper: Java Virtual Machine started (PID=53) (INFO) wrapper: Java Virtual Machine crashed (INFO) wrapper: Java Virtual Machine started (PID=705) (INFO) wrapper: Java Virtual Machine crashed (INFO) wrapper: Java Virtual Machine started (PID=647) (INFO) wrapper: Java Virtual Machine crashed (INFO) wrapper: VM died too many times w/in 5 second intervals (6); no more tries (INFO) wrapper: too many restart attempts w/in a short timeframe; no more retries. The virtual machine cannot start... There's something in your configuration that prevents it from starting up... Attached are all the config/properties files. Ehem... Nope... Again, all your help is highly appreciated. Welcome... Pier
Re: ABSOLUTELY WORLDS NO. 1 ..MEGA !
ENTERTAINMENT at [EMAIL PROTECTED] wrote: [...] Awww... I'm sorry guys... I'll have to enable moderation (once one gets in, we'll be flooded)... Sorry... :( :( :( Pier
Re: ABSOLUTELY WORLDS NO. 1 ..MEGA !
I'm already moderating 20+ mailing lists... Didn't want to do this one too, but, ohhwell, what can I do? I'll try to tweak ezmlm to do some better filtering, or I don't know :) :) :) I know it's uncool... But it's not my fault :) I didn¹t post that message, and didn't create the mailing list :) :) :) Pier Curtis Dougherty at [EMAIL PROTECTED] wrote: Pier!! Dude :( uncool... -Original Message- From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 4:48 PM To: [EMAIL PROTECTED] Subject: Re: ABSOLUTELY WORLDS NO. 1 ..MEGA ! ENTERTAINMENT at [EMAIL PROTECTED] wrote: [...] Awww... I'm sorry guys... I'll have to enable moderation (once one gets in, we'll be flooded)... Sorry... :( :( :( Pier
Re: ABSOLUTELY WORLDS NO. 1 ..MEGA !
Alexey N. Solofnenko at [EMAIL PROTECTED] wrote: Maybe enabling filtering by headers will help. That message had 'Precedence: bulk' header. All of them (well, most of them) gave Precedence: bulk :( Pier
Re: CATALINA_HOME vs. TOMCAT_HOME
Craig R. McClanahan at [EMAIL PROTECTED] wrote: Correct... And I found it also in other places: webapps, documentation and so on... Should we change them? All the references to TOMCAT_HOME in Tomcat 4 docs should be changed. 'k... Will take care of it today... Also, for the release notes, should we change only the LAST, or all of them? I would suggest *never* changing old release notes -- we want them to reflect what was actually shipped with that release. Just add an entry to the newest release notes doc to say that we updated the docs themselves. Agreed... So, I'm going to change it in RELEASE_NOTES_B8.txt, leave the old as is, (mention it in RELEASE notes, of course), then update all docs and whops! done :) Pier
Re: Tomcat crashes simultaneous more connection above 990+
Jeff Turner at [EMAIL PROTECTED] wrote: Well I think you're completely nuts :) For 10,000 concurrent requests for *dynamic* data (or else you'd just be using Apache.. right?), you'd need a server farm full of fancy equipment, a load-balancing server, and stuff that even my wildly ignorant speculations can't conceive. Besides, I don't think any single server with simple thread-per-request, blocking IO model can handle that sort of load. A smart fellow called Matt Welsh did his PhD thesis on highly concurrent server apps, and the results of his thinking are here: http://www.cs.berkeley.edu/~mdw/proj/sandstorm/ In particular, the paper The Staged Event-Driven Architecture for Highly Concurrent Servers. is well worth reading. It _can_ be done... Probably not in Java (I'm not that sure it can handle that many file descriptors open), but I've seen a Sun E4500 (fully populated) holding up 20k connections with 100 processes and 200 threads each... But it was a 1 million $$$ machine... Load balancing... :) Pier
Re: How-To configure Tomcat4.0 with Apache to serve servlets/jsprequest?
Satyan Nair at [EMAIL PROTECTED] wrote: Hi All, How-To configure Tomcat4.0 with Apache to serve servlets/jsp request? I m not yet successful in doing so. Till now i using the port 8080 to run my examples. Let me know if there is any documentation available to help configure tomcat4 with apache. Download B7, and in the bin directory you'll find mod_webapp, toghether with a couple of text files on how to install it... Have fun :) (BTW, what OS are you using?) Pier
Re: Tomcat 4.0 Status
Jim Urban at [EMAIL PROTECTED] wrote: I just got back from a 2 week vacation, and was wondering what the status of Tomcat 4.0 was. When will it be ready for prime time (production)? Now :) We're calling it beta because it would be pointless to have a FINAL piece of software implementing a NON-FINAL specification (servlet 2.3 is not out yet, but getting there pretty soon!)... Pier
Re: problem with mod_webapp.so on Solaris
John Harris at [EMAIL PROTECTED] wrote: I'm trying to upgrade to Tomcat 4.0, using my current install of Apache 1.3.19. I am able to make mod_webapp.so just fine, but when I go to test apache with apachectl configtest I get the error: Syntax error on line 72 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/mod_webapp.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: libmm.so.11: open failed: No such file or directory This is on a SPARC solaris 2.6 install. I downloaded the cvs on saturday night for jakarta-tomcat-connectors as well as the apr. Whops... Glitch in the build process? Did you build it following the README.txt file included into it? Hmm... I'm wondering. LibMM is included into APR, and when APR gets configured, it is configured with --enable-static --disable-shared, so libmm.so SHOULD NOT be built, but its static counterpart (libmm.a) should be there. Can you check in your APR build directory for a libmm.* file and tell me what you find? (Use something like find apr/ | grep libmm, as some of the libraries are in hidden directories - damn libtool!). Pier
Re: Error Log
Barnabas Yohannes at [EMAIL PROTECTED] wrote: Jeff, This code_red virus seems a Microsoft IIS issue. Do you think this virus also could attack an apache server? It can NOT attack any other web server BUT Microsoft IIS... Apache, Tomcat and all the others are NOT AFFECTED by code red... EVEN if you're running them on Windows... Pier
Tomcat 3.x odd behavior...
My turn for questions now :) I'm tired of replying... :) I have a production server running both TC4 and TC3, plus a bunch of other services... Now, the server crashed tonight, and I found that I had approximately 35.000 unlinked inodes after the reboot... 120 owned by TC4, apache, mysql, yadayadayada, the rest by TC3... I'm running Solaris 8 on a 6-processor Sun E4500... Has anyone observed this behavior on some other system? I don't quite figure out how it could be possible... Pier (watching a marvelous BollyWood movie -with subtitles- while looking @ reconnecting inodes)
Re: mod_webapp with Apache 2.0
Ian Kallen [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: I was just perusing the jakarta-tomcat-connectors tree and found plenty about building with Apache 1.3 but no mention of 2.0 -- is there a separate tree for it or something? Sorry, but mod_webapp has not yet been written for 2.0 :) :) Pier
Re: problem make webapp module for apache
Steffen Haase at [EMAIL PROTECTED] wrote: Probably I'll try to compile the sources on a Debian Linux. Normally, there should be no different between Red Hat, SuSE and other Linux boxes... Which OS do you use? FreeBSD or Solaris? Probably; I'll switch to FreeBSD... For development I use OS/X, and in production Solaris 8. I don't use Linux because of its very poor threading implementation, several bugs in the GLIBC and a bunch of other stuff I don't like. FreeBSD is very good from the reliability point of view, but although their threading implementation is better than Linux (on paper), it's still buggy. I'm waiting for the upcoming 5.0 which is supposed to work great. SunOS 5.8 (Solaris 8) is a good os, it has by far the best threading implementation available, it's fast as hell, and I never saw it crash, but it's slightly picky about hardware requirements, and if something doesn't work _perfectly_ it complains (a lot). So your PC must be a good one, especially regarding memory timings (don't mix PC100 and PC133 sims even on a PC100 mainboard) and hard drive. The only problem is that it's not fully open source (you can see the sources though), but it comes for free for anyone for any use up to 4 processors per box... It's good... I like it. Pier
Re: Jakarta crashes after 900+ simultaneous connection
Santosh Pasi at [EMAIL PROTECTED] wrote: Hi everyone, We are doing some stress testing. My problem is that when number of connections reaches around 940..980, jakarta crashes with following messages- SIGSEGV 11* segmentation violation si_signo [11]: SIGSEGV 11* segmentation violation si_errno [0]: Success si_code [0]: SI_USER [pid: 0, uid: 0] stackpointer=0x4c558554 Full thread dump Classic VM (1.2.2-L, green threads): ppp202 (TID:0x40fb7190, sys_thread_t:0x8d0dec0, state:R) prio=5 at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:86) at java.net.SocketInputStream.read(SocketInputStream.java:67) at java.io.InputStreamReader.fill(InputStreamReader.java:159) at java.io.InputStreamReader.read(InputStreamReader.java:235) at java.io.BufferedReader.fill(BufferedReader.java:133) at java.io.BufferedReader.readLine(BufferedReader.java:270) at java.io.BufferedReader.readLine(BufferedReader.java:325) at IRCClient.run(IRCClient.java:799) bumba174 (TID:0x40f88f90, sys_thread_t:0x8d0b358, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) at IRCClient.run(IRCClient.java:765) sunny1176 (TID:0x40f75b28, sys_thread_t:0x8d0b930, state:CW) prio=5 at java.lang.Thread.sleep(Native Method) .. .. - We are using redhat 6.2 Linux, kernel 2.2.16, Tomcat-jakarta-3.2.1, apache 1.3.14. Hope to get some reply. From what I can see here, your problem is not TOMCAT (there's no such thing as Jakarta), but your IRC client. Pier
Re: Does Tomcat usually run so SLOW?
[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: Hi! I've got Tomcat 3.2.3 on HP-UX 10.20, and answer responses are -in my opinion- very slow (5-6 secs.). Is it normal? Nope... I got way less than that on a 735 w/ PUX 10.20 and JDK 118 Pier
Re: [ANNOUNCEMENT] Tomcat 4.0-beta-7 Released
chris brown at [EMAIL PROTECTED] wrote: Re: 2./ mod_webapp I found a few answers in RELEASE-NOTES-4.0-B7.txt as supplied with the distribution. I still can't find any non-Linux distributions however, (I require a Win32 binary). I can't find any detailed documention about it (what is a warp connection? I've seen warp.jar in Tomcat, but I don't know really what it does or how to use it)... Hey... Everyone needs to sleep sometime... I can't prepare binaries if I'm lying down on my bed with my eyes shut. :) And anyway, there's not going to be a Win32 binary today... As I still don't have a Win32 C compiler... How else can I connect Tomcat 4.0 with an Apache server (1.3.20) ? Dunno Kill windows, install a decent operating system (such as Solaris x86, BeOS, Darwin, FreeBSD etc etc etc) to have it working today :) Pier
Re: [TC4] mod_webapp
chris brown at [EMAIL PROTECTED] wrote: Hey... Everyone needs to sleep sometime... I can't prepare binaries if I'm lying down on my bed with my eyes shut. :) Your time *is* very much appreciated... I can wait, it's still quicker than writing it myself ! Cool.. And anyway, there's not going to be a Win32 binary today... As I still don't have a Win32 C compiler... Just wondered if was an oversight... what with sleep deprivation, and so on! ;-) I'd happily compile it for you if I had a C compiler and knew how to use it... ;-)) The problem is building the makefiles :) How else can I connect Tomcat 4 with an Apache server (1.3.20)? Dunno Kill windows, install a decent operating system (such as Solaris x86, BeOS, Darwin, FreeBSD etc etc etc) to have it working today :) We already have Linux *and* Windows. Both not my #1 choice, but at least Linux has fork() :) I was wondering if I could still use mod_jk... or if mod_webapp will be the only way for Tomcat 4. I've also heard about using a JNI interface with Apache 2, but I don't know how viable this option is (yet). AFAIK, there is some AJPv14 that is supposed to work with TC4. I never tried it though... I don't even know if it's working. The WebApp module is compliant with WatchDog, so meaning that right now I can ask for compliancy to the servlet spec... And it's coming better every day... Just wanted to let you know that your work is appreciated, and that I'm not a whining Windows user...! :) Pier
Re: mod_webapp.so
James, Stuart at [EMAIL PROTECTED] wrote: where can I download a copy of the mod_webapp.so I am using tomcat beta 6 with apache 1.3 running on windows nt 4.0 You'd better check out the new one in CVS. The one shipped with B6 is now known to have problems The CVS repository is jakarta-tomcat-connectors/webapp Pier
Re: Such a thing as server startup class?
Greg Trasuk at [EMAIL PROTECTED] wrote: Hi all: Yes, a good discussion. I puzzled over this for an application I wrote a while ago. After many hours contemplating the servlet spec (2.2), I finally decided that if I created an object and dropped it into the application context, it was guaranteed to live as long as the servlet container. My logic was this: - The servlet container can load/unload servlets at its pleasure - A servlet marked Load-on-startup will be loaded and have its init() method called when the container starts, even if its not mapped to a URL. - Java won't finalize an instance so long as another instance or class has a reference to it. - The application context will maintain a reference to the instance. - If the servlet container destroys the application context, it's probably a sign that I should reinitialize everything anyway. Could some of the folks who are more familiar with the specs and implementation comment on whether this logic is correct and portable to all containers? It worked for the application under Tomcat 3.x, but I've always had nagging doubts. All YES but the last two... You cannot be guaranteed that the container will maintain a reference until it dies... BUT at the same time, I haven't seen anyone doing the contrary... Pier
Re: Problem in Intigration Apache Tomcat
sekhar k at [EMAIL PROTECTED] wrote: Hi All, I am using Apache and Tomcat in Sun os. It's running nice my problem is that if i use www.mydomain.com apache is responding.For tomcat i need to give www.mydomain.com/domain/servlet/Test but it's not giving result. It's responding only when i call port directly like www.mydomain.com:8080/domain/servlet/Test Apache is running on 80. So what will be the problem. Give me a solution Maybe a please would be appreciated... We're not paid to solve your problems. Then you might want to read the documentation before coming out with such a question... Ever heard of Apache modules such as mod_jserv, mod_webapp or mod_jk??? It's all in the docs... Pier
Re: how many visits can tomcat deal with
[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: hi how many visits can tomcat deal with at the same time? in other words: on how many visit should i use load balancing to increase performance? how many hits (or visits) is your tomcat dealing with every day? Read the archive... I posted something last week... Pier
Re: problem make webapp module for apache
Can you send me your three Makefile, Makedefs and apache-1.3/Makefile files? I believe that both APR and APXS are defining -DLINUX somehow, you should see two colliding entries in one of those files (but please, SEND them) Pier Steffen Haase at [EMAIL PROTECTED] wrote: Hi Pier, Pier P. Fumagalli wrote: Finding it will not help. Something else is wrong. At least 2 things: 1 - What is the result of your configure? (There must be something wrong). no, everything seems to be ok. Can you send the output? I checked out the apr (APACHE_2_0_22) and the jakarta-tomcat-connectors sources. I can compile the sources but not linking :( I attached the output from the configure script as zip-file (4KByte). Steffen make -- Compiling sources in /usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib... make[1]: Entering directory `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib' Generating pr_warp_defs.h make[1]: Leaving directory `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib' Compiling sources in /usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3... make[1]: Entering directory `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3' Compiling Apache 1.3 WebApp module *Initialization*:1: warning: `LINUX' redefined *Initialization*:1: warning: this is the location of the previous definition Linking Apache 1.3 WebApp Module /usr/local/install/jakarta/apr/libtool: mod_webapp.lo: command not found make[1]: *** [mod_webapp.so] Error 127 make[1]: Leaving directory `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3' make: *** [local-all] Error 2 cheiron:/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp #
Re: problem make webapp module for apache
Steffen Haase at [EMAIL PROTECTED] wrote: Hi Pier, Pier P. Fumagalli wrote: Don't worry... This is a patch that should make your module compile: I can compile, thats not the problem. I can't linking the mod_webapp.so That patch fixed the double definition of -DLINUX in the compilation, that's right... RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/apache-1.3/Makefile.in,v I changed my Makefile, but that's only a patch for compiling. Yes... My bad (should read things twice or three times before replying). Steffen -- error message Compiling sources in /usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib... make[1]: Entering directory `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/lib' Compiling sources in /usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3... make[1]: Entering directory `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3' Linking Apache 1.3 WebApp Module /usr/local/install/jakarta/apr/libtool: mod_webapp.lo: command not found make[1]: *** [mod_webapp.so] Error 127 make[1]: Leaving directory `/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp/apache-1.3' make: *** [local-all] Error 2 cheiron:/usr/local/install/jakarta/jakarta-tomcat-connectors/webapp # I'm looking at your Makefiles, and somehow there's something I don't understant... It seems that your httpd is not configured to support DSO modules. Can you check that the output of httpd -l includes mod_so.c? Also, your apxs should export the command used for linking DSO modules. For example, in my case when I hit apxs -q LD_SHLIB, I get cc, my default ld command used for linking DSO modules... While from the makefile you sent me, it seems that apxs is not outputting that value correctly. Can you check those two things? Sorry for troubles... Pier
Re: problem make webapp module for apache
Steffen Haase at [EMAIL PROTECTED] wrote: Hi Pier, Pier P. Fumagalli wrote: I'm looking at your Makefiles, and somehow there's something I don't understant... It seems that your httpd is not configured to support DSO modules. Can you check that the output of httpd -l includes mod_so.c? cheiron:/usr/local/httpd/bin # ./httpd -l Compiled-in modules: http_core.c mod_env.c mod_log_config.c mod_mime.c mod_negotiation.c mod_status.c mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_asis.c mod_imap.c mod_actions.c mod_userdir.c mod_alias.c mod_access.c mod_auth.c mod_so.c mod_setenvif.c suexec: disabled; invalid wrapper /usr/local/httpd/bin/suexec cheiron:/usr/local/httpd/bin # Also, your apxs should export the command used for linking DSO modules. For example, in my case when I hit apxs -q LD_SHLIB, I get cc, my default ld command used for linking DSO modules... While from the makefile you sent me, it seems that apxs is not outputting that value correctly. /usr/local/httpd/bin/apxs -q LD_SHLIB nothing :( /usr/local/httpd/bin/apxs -q CC gcc /usr/local/httpd/bin/apxs -q CFLAGS -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDEDcheiron:/usr/local/install/jakarta/jakarta-tomcat-connectors/ That's definitely weird... If you have mod_so, LD_SHLIB _should_ be defined. Can you put gcc in your Makefile near APXS_LD_SHLIB, and see what happens. I really don't understand why this is happening... Pier
Re: problem make webapp module for apache
Steffen Haase at [EMAIL PROTECTED] wrote: Steffen Haase wrote: ...now I've got the following error messages I corrected the compile command in apache-1.3/Makefile and execute make clean and make. I've got the following errors RRRGH :( IT DOESN'T MAKE ANY SENSE :( :( (ok, I'm about to cry now). All the symbols which are not found _are_ exported by Apache 1.3... And the core is linked into the httpd binary... SHIT... I don't really get what's happening... I'm going to try to modify the build process to use APXS to build the shared module (instead of the standard CC and LD commands)... Give me a couple of hours, please... Pier (who can't figure out WHAT THE HELL IS WRONG!) --- Compiling sources in /tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3... make[1]: Entering directory `/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3' Linking Apache 1.3 WebApp Module /usr/lib/crt1.o: In function `_start': /usr/lib/crt1.o(.text+0x18): undefined reference to `main' mod_webapp.o: In function `wa_log': mod_webapp.o(.text+0x48b): undefined reference to `ap_log_error' mod_webapp.o: In function `wam_handler_log': mod_webapp.o(.text+0x4d3): undefined reference to `ap_log_error' mod_webapp.o: In function `wam_handler_setctype': mod_webapp.o(.text+0x525): undefined reference to `ap_pstrdup' mod_webapp.o(.text+0x548): undefined reference to `ap_pstrdup' mod_webapp.o(.text+0x562): undefined reference to `ap_table_add' mod_webapp.o: In function `wam_handler_setheader': mod_webapp.o(.text+0x5a5): undefined reference to `ap_pstrdup' mod_webapp.o(.text+0x5bd): undefined reference to `ap_pstrdup' mod_webapp.o(.text+0x5d2): undefined reference to `ap_table_add' mod_webapp.o: In function `wam_handler_commit': mod_webapp.o(.text+0x5f7): undefined reference to `ap_send_http_header' mod_webapp.o(.text+0x606): undefined reference to `ap_rflush' mod_webapp.o: In function `wam_handler_flush': mod_webapp.o(.text+0x637): undefined reference to `ap_rflush' mod_webapp.o: In function `wam_handler_read': mod_webapp.o(.text+0x698): undefined reference to `ap_should_client_block' mod_webapp.o(.text+0x6c0): undefined reference to `ap_get_client_block' mod_webapp.o: In function `wam_handler_write': mod_webapp.o(.text+0x72f): undefined reference to `ap_rwrite' mod_webapp.o: In function `wam_match': mod_webapp.o(.text+0x83f): undefined reference to `ap_pstrdup' mod_webapp.o: In function `wam_invoke': mod_webapp.o(.text+0x941): undefined reference to `ap_log_error' mod_webapp.o(.text+0x96f): undefined reference to `ap_get_remote_host' mod_webapp.o(.text+0xcfe): undefined reference to `ap_setup_client_block' mod_webapp.o(.text+0xd46): undefined reference to `ap_rflush' collect2: ld returned 1 exit status make[1]: *** [mod_webapp.so] Error 1 make[1]: Leaving directory `/tmp/src/jakarta-tomcat-connectors/webapp/apache-1.3' make: *** [local-all] Error 2 cheiron:/tmp/src/jakarta-tomcat-connectors/webapp #
Re: Running Tomcat as a Windows service
Richard Heintze at [EMAIL PROTECTED] wrote: Jim, Ronald and Bryan, Could you folks kindly give me URL for this JavaService? I assume I'll have the same problem -- I'm using a service in the FAQ that runs any old bat file. I looked at the services that exclusively run java programs and then looked at the complexity of tomcat.bat and startup.bat and decided to go with the generic solutions that runs bat files. But this won't work if I log off the server? It's distributed w/ Tomcat 4.0's EXE distributions... And works great... :) Pier
Re: File Upload Problem when bigger than 0.97 MB
Kalyan Mitra at [EMAIL PROTECTED] wrote: Hi there, I am facing problem when uploading file bigger than 0.97MB through MultipartPerser the error in log file shows as follows Please help if u have any idea. I don't see any error in the log file you provided... Pier
Re: problem make webapp module for apache
jean-frederic clere at [EMAIL PROTECTED] wrote: Steffen Haase wrote: Hi, I have some problems to compile the webapp module (servlet engine) for the apache webserver. The compiler miss the following files: mach-o/dyld.h dlfcn.h dl.h Where can I find these header files? Which packages do I have to download? [...] Have you done configure before doing make? Something must have gone wrong in configure. Under Linux mach-o shouldn't be defined, unless Suse didn't start integrating the NSMoule Dynamic Linker Loader... What is mach-o? MacOS/X Nope... It's MACH. It's a kernel used by several operating systems INCLUDING OS/X, but not only that. OS/2 is another example... Pier
Re: problem make webapp module for apache
Steffen Haase at [EMAIL PROTECTED] wrote: System: SuSE Linux 7.2, Apache 1.3.20 Module: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b6/src/webapp -module-1.0-tc40b6.src.tar.gz Hint... Use the latest CVS version, instead of this one. This one is known to have bugs. Pier
Re: problem make webapp module for apache
Steffen Haase at [EMAIL PROTECTED] wrote: Hi, jean-frederic clere wrote: Have you done configure before doing make? yes, of course. Upgrade to the latest CVS version, run configure and send me the output of what comes out of it... (Actually, read the whole README coming with the CVS version) What is mach-o? MacOS/X where can I find it? It seems that I need these header files for compiling the webapp sources. You can't FIND it... It's an operating system. Pier
Re: problem make webapp module for apache
Steffen Haase at [EMAIL PROTECTED] wrote: Hi, jean-frederic clere wrote: Finding it will not help. Something else is wrong. At least 2 things: 1 - What is the result of your configure? (There must be something wrong). no, everything seems to be ok. Can you send the output? Pier
Re: problem make webapp module for apache
Steffen Haase at [EMAIL PROTECTED] wrote: Pier P. Fumagalli wrote: Upgrade to the latest CVS version, run configure and send me the output of what comes out of it... (Actually, read the whole README coming with the CVS version) ok, I'll try it. Where can I find the newest apr sources? (cvs-tree) thanks a lot. cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login (password anoncvs) cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic co \ jakarta-tomcat-connectors/webapp Pier
Re: Segmentation violation
Harippriya Sivapatham at [EMAIL PROTECTED] wrote: Hi there, I am getting a segmentation violation in tomcat (the full error message is added to the end of this mail). Tomcat stops when this error occurs. I am getting this error when i call a particular servlet. The error message displays a lot about Threads. So, i just want to note that the servlet that causes this problem does not use any threads. I would really appreciate any help with this. Thanks a lot. Harippriya Here is error message... SIGSEGV 11 segmentation violation si_signo [11]: SEGV si_errno [0]: si_code [1]: SEGV_MAPERR [addr: 0x45a0920] What version of Tomcat are you using? What version of Java Virtual Machine? What operating system? (Kinda hard to tell without those informations) :) Pier