Re: [Resin-interest] CentOS 5 mod_caucho compile issue
Actually, I got it compile without errors by puttung the absolute path to apxs. Thanks The future is here. It's just not widely distributed yet. -William Gibson On Mon, Jan 12, 2009 at 2:17 AM, Vinny xaym...@gmail.com wrote: I think this may be my issue as well. How do I add those apr flags to my mod_caucho build? The future is here. It's just not widely distributed yet. -William Gibson On Wed, Apr 18, 2007 at 11:31 AM, Chris Jones cjo...@gdisoftware.comwrote: Ding Deng wrote: On 4/17/07, Chris Jones cjo...@gdisoftware.com wrote: Hey all, I have run into some issues compiling mod_caucho from resin 2.1.17 on CentOS 5. I have managed to get rid of an issue where the compiler was reporting missing apr header files. I modified the Makefile to include -I/usr/include/apr-1 to APACHE_INC=. This resolved the missing files issue but now running into other issues which I can't figure out. Here the output from make: (cd src/c/plugin; make) make[1]: Entering directory `/usr/src/resin-2.1.17/src/c/plugin' for dir in common apache2; do (cd $dir; make); done make[2]: Entering directory `/usr/src/resin-2.1.17/src/c/plugin/common' gcc -c -g -O2 stream.c gcc -c -g -O2 registry.c gcc -c -g -O2 config.c gcc -c -g -O2 memory.c /usr/bin/ld -r -o common.o stream.o registry.o config.o memory.o make[2]: Leaving directory `/usr/src/resin-2.1.17/src/c/plugin/common' make[2]: Entering directory `/usr/src/resin-2.1.17/src/c/plugin/apache2' gcc -c -I/usr/include/httpd -I/usr/include/apr-1 -DRESIN_HOME=\/usr/src/resin-2.1.17\ -I../common -g -O2 -fpic mod_caucho.c mv mod_caucho.o mod_caucho.lo In file included from /usr/include/apr-1/apr.h:7, from /usr/include/httpd/ap_config.h:25, from /usr/include/httpd/httpd.h:43, from mod_caucho.c:42: /usr/include/apr-1/apr-i386.h:270: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t' It's an APR issue: http://mail-archives.apache.org/mod_mbox/apr-dev/200410.mbox/%3c20041022090014.ga9...@redhat.com%3e HTH. Thanks, that worked. In file included from /usr/include/apr-1/apr_file_io.h:29, from /usr/include/apr-1/apr_network_io.h:26, from /usr/include/httpd/httpd.h:53, from mod_caucho.c:42: /usr/include/apr-1/apr_file_info.h:204: error: expected specifier-qualifier-list before 'apr_off_t' In file included from /usr/include/apr-1/apr_network_io.h:26, from /usr/include/httpd/httpd.h:53, from mod_caucho.c:42: /usr/include/apr-1/apr_file_io.h:548: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_file_io.h:740: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from /usr/include/httpd/httpd.h:53, from mod_caucho.c:42: /usr/include/apr-1/apr_network_io.h:545: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from /usr/include/apr-1/apr_buckets.h:32, from /usr/include/httpd/httpd.h:54, from mod_caucho.c:42: /usr/include/apr-1/apr_mmap.h:134: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_mmap.h:161: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from /usr/include/httpd/httpd.h:54, from mod_caucho.c:42: /usr/include/apr-1/apr_buckets.h:242: error: expected specifier-qualifier-list before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:706: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:718: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:754: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:890: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:891: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:1168: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:1367: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:1381: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:1431: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:1447: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from mod_caucho.c:42: /usr/include/httpd/httpd.h:826: error: expected specifier-qualifier-list before 'apr_off_t' In file included from /usr/include/httpd/http_core.h:32, from mod_caucho.c:44: /usr/include/httpd/util_filter.h:142
[Resin-interest] a good ratio?
httpd-2.2.3-11.el5_2.centos.4 resin 3.1.8 What should be a good ratio between external apache connections and mod_caucho connections. Here is a sample are seeing this like this from netstat: [netstat -tan |grep \:80 | grep EST |wc -l ; netstat -tan |grep \:6802 | grep EST |wc -l (80:) 26 (6802:)110 5 32 7 48 10 34 Do the connection between apache httpd and resin count against apache 's MaxClients config ? or resin's maximums in the server.xml? The future is here. It's just not widely distributed yet. -William Gibson ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] debugging mod_caucho
I enabled debugging on mod_caucho and I am seeing line like : config.c:1286:cse_update_host(): foo.com:80(0x918ad50) old:0 now:1231827067() config.c:1164:cse_update_host_from_resin(): can't open any connections config.c:1291:cse_update_host(): complete foo.com:80(0x918ad50) old:0 now:1231827067() config.c:1286:cse_update_host(): :0(0x9189c70) old:0 now:1231827067() config.c:1164:cse_update_host_from_resin(): can't open any connections config.c:1291:cse_update_host(): complete :0(0x9189c70) old:0 now:1231827067() mod_caucho.c:922:caucho_request(): session index: -1 mod_caucho.c:934:caucho_request(): no connection: cluster(0x9189cb0) in my resin.conf I have : !-- define the servers in the cluster -- server id= address=127.0.0.1 port=6802/ and netstat shows : # netstat -atnp |grep 68 tcp0 0 127.0.0.1:6802 0.0.0.0:* LISTEN 32667/java the httpd.conf has : LoadModule caucho_module /usr/lib/httpd/modules/mod_caucho.so ResinConfigServer 127.0.0.1 6800 CauchoHost 127.0.0.1 6800 AddHandler caucho-request .jsp Location /caucho-status SetHandler caucho-status /Location resin 3.1.8 /apache 2.2.3 centos Any ideas? The future is here. It's just not widely distributed yet. -William Gibson ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] CentOS 5 mod_caucho compile issue
I think this may be my issue as well. How do I add those apr flags to my mod_caucho build? The future is here. It's just not widely distributed yet. -William Gibson On Wed, Apr 18, 2007 at 11:31 AM, Chris Jones cjo...@gdisoftware.comwrote: Ding Deng wrote: On 4/17/07, Chris Jones cjo...@gdisoftware.com wrote: Hey all, I have run into some issues compiling mod_caucho from resin 2.1.17 on CentOS 5. I have managed to get rid of an issue where the compiler was reporting missing apr header files. I modified the Makefile to include -I/usr/include/apr-1 to APACHE_INC=. This resolved the missing files issue but now running into other issues which I can't figure out. Here the output from make: (cd src/c/plugin; make) make[1]: Entering directory `/usr/src/resin-2.1.17/src/c/plugin' for dir in common apache2; do (cd $dir; make); done make[2]: Entering directory `/usr/src/resin-2.1.17/src/c/plugin/common' gcc -c -g -O2 stream.c gcc -c -g -O2 registry.c gcc -c -g -O2 config.c gcc -c -g -O2 memory.c /usr/bin/ld -r -o common.o stream.o registry.o config.o memory.o make[2]: Leaving directory `/usr/src/resin-2.1.17/src/c/plugin/common' make[2]: Entering directory `/usr/src/resin-2.1.17/src/c/plugin/apache2' gcc -c -I/usr/include/httpd -I/usr/include/apr-1 -DRESIN_HOME=\/usr/src/resin-2.1.17\ -I../common -g -O2 -fpic mod_caucho.c mv mod_caucho.o mod_caucho.lo In file included from /usr/include/apr-1/apr.h:7, from /usr/include/httpd/ap_config.h:25, from /usr/include/httpd/httpd.h:43, from mod_caucho.c:42: /usr/include/apr-1/apr-i386.h:270: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t' It's an APR issue: http://mail-archives.apache.org/mod_mbox/apr-dev/200410.mbox/%3c20041022090014.ga9...@redhat.com%3e HTH. Thanks, that worked. In file included from /usr/include/apr-1/apr_file_io.h:29, from /usr/include/apr-1/apr_network_io.h:26, from /usr/include/httpd/httpd.h:53, from mod_caucho.c:42: /usr/include/apr-1/apr_file_info.h:204: error: expected specifier-qualifier-list before 'apr_off_t' In file included from /usr/include/apr-1/apr_network_io.h:26, from /usr/include/httpd/httpd.h:53, from mod_caucho.c:42: /usr/include/apr-1/apr_file_io.h:548: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_file_io.h:740: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from /usr/include/httpd/httpd.h:53, from mod_caucho.c:42: /usr/include/apr-1/apr_network_io.h:545: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from /usr/include/apr-1/apr_buckets.h:32, from /usr/include/httpd/httpd.h:54, from mod_caucho.c:42: /usr/include/apr-1/apr_mmap.h:134: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_mmap.h:161: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from /usr/include/httpd/httpd.h:54, from mod_caucho.c:42: /usr/include/apr-1/apr_buckets.h:242: error: expected specifier-qualifier-list before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:706: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:718: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:754: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:890: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:891: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:1168: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:1367: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:1381: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:1431: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/apr-1/apr_buckets.h:1447: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from mod_caucho.c:42: /usr/include/httpd/httpd.h:826: error: expected specifier-qualifier-list before 'apr_off_t' In file included from /usr/include/httpd/http_core.h:32, from mod_caucho.c:44: /usr/include/httpd/util_filter.h:142: error: expected declaration specifiers or '...' before 'apr_off_t' /usr/include/httpd/util_filter.h:299: error: expected declaration specifiers or '...' before 'apr_off_t' In file included from mod_caucho.c:44:
[Resin-interest] srun vs server ?
Hello All, Still working on my Apache/Resin issues and looking through the docs I found : http://caucho.com/resin-3.1/doc/install-apache.xtp#Configuring%20resin.conf In the wild I have seen both this: cluster *srun server-id= host=127.0.0.1 port=6802/* /cluster and this: !-- define the servers in the cluster -- server id= address=127.0.0.1 port=6802/ which one is correct when using mod_caucho but not using a cluster? Tnanks The future is here. It's just not widely distributed yet. -William Gibson ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] srun vs server ?
Ah, got it. Thanks The future is here. It's just not widely distributed yet. -William Gibson On Thu, Dec 11, 2008 at 11:53 AM, Scott Ferguson f...@caucho.com wrote: On Dec 11, 2008, at 7:42 AM, Vinny wrote: Hello All, Still working on my Apache/Resin issues and looking through the docs I found : http://caucho.com/resin-3.1/doc/install-apache.xtp#Configuring%20resin.conf In the wild I have seen both this: cluster *srun server-id= host=127.0.0.1 port=6802/* /cluster and this: !-- define the servers in the cluster -- server id= address=127.0.0.1 port=6802/ which one is correct when using mod_caucho but not using a cluster? They're equivalent. The first one is the old, Resin 3.0 syntax for backward compatibility. In Resin 3.1, every server belongs to a cluster because we want one unified deployment model, not a bunch of different cases. If you have a single server, it belongs to a cluster with one server. In previous versions, clustering was a feature, but now it's part of the architecture. -- Scott Tnanks The future is here. It's just not widely distributed yet. -William Gibson ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] 3.1.4 fails to compile on OSX Leopard 10.5
Hello All, After running configure for resin 3.1.4 . I get the following compile error running make: $ make (cd modules/c/src; make) for dir in common resin_os; do (cd $dir; make); done gcc -c -I/usr/include -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DHAS_SOCK_TIMEOUT stream.c /var/folders/Z8/Z8028UEp2ReCWE+BYurv5TM/-Tmp-//cc6DnnVQ.s:unknown:FATAL:can't create output file: stream.o make[2]: *** [stream.o] Error 1 gcc -g -O2 -DPOLL -D_POSIX_PTHREAD_SEMANTICS -DHAS_SOCK_TIMEOUT -D_FILE_OFFSET_BITS=64 -DRESIN_HOME=\/usr/local/resin-3.1.4\ -I/usr/include -I/System/Library/Frameworks/JavaVM.framework/Headers -I../common -DCPU=\i386\ -DOS= -c -o jni_os.o jni_os.c /var/folders/Z8/Z8028UEp2ReCWE+BYurv5TM/-Tmp-//ccBBD6NT.s:unknown:FATAL:can't create output file: jni_os.o make[2]: *** [jni_os.o] Error 1 make[1]: *** [plugins] Error 2 make: *** [all] Error 2 -- The Street Programmer http://streetprogrammer.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] LDAP and resin
Do any of the 2 authentication schemes for LDAP (JndiLoginModule or LdapAuthenticator) support either simple or anonymous authentication? The docs are kind of thin in that regard. -- The Street Programmer http://streetprogrammer.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] anti pattern for security constraint?
I'm not quite grokking it. Can you show me in an xml snippet? Thanks for the help. Vinny On 9/7/07, Scott Ferguson [EMAIL PROTECTED] wrote: On Sep 7, 2007, at 1:05 PM, Vinny wrote: Hey guys, Is it possible to do something like? : url-regexp !^/js/*/regexp on a security contraint? I basically want to protect everything EXCEPT for certain things like images and javascript. I'm trying to get my login page to look a little nicer but it refferences images,js inside the protected webapp. Thoughts? The first security contraint matches and ignores the rest. So you can make one that matches /js/* and allows everything. -- Scott Thanks -- The Street Programmer http://streetprogrammer.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- The Street Programmer http://streetprogrammer.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] anti pattern for security constraint?
Hey guys, Is it possible to do something like? : url-regexp !^/js/*/regexp on a security contraint? I basically want to protect everything EXCEPT for certain things like images and javascript. I'm trying to get my login page to look a little nicer but it refferences images,js inside the protected webapp. Thoughts? Thanks -- The Street Programmer http://streetprogrammer.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Wild card SSL Certs
Hello All, My company has moved to wildcard certificates and I've been asked to install it on our OS version of Resin. I received the cert in the form of a .pfx file and a password. Can this be used with my version of Resin or do I need Pro in order to use OpenSSL with this certificate? Thanks, Vinny -- Ghetto Java: http://www.ghettojava.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Is there an easy way to do this? port
Hi, I am trying figure out a way to do a kind of virtual hosting based on port number. I want my production apps running under port 443 docroot : (/web/production/webapps) and my dev apps running under 8080. docroot : (/web/dev/webapps) both production and dev apps will have the same context names (like ROOT.war for example) I just need resin to differentiate on port number basically. I was thinking perhaps I could nest host/ under http/ but it seems like I will have to make a completely seperate server/ block? Is that really the case? Thanks in advance -- Ghetto Java: http://www.ghettojava.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest