Linux / Apache / Tomcat conf troubles
Hi everyone, I find 2 problems on my Linux/Apache/Tomcat platform : *** First, I can't manage to redirect a 500 error code page to a customized error page, even I can't see any trouble in my conf's files. # config Linux RedHat 7.1 Apache 1.3.27 (rpm) Tomcat 4.1.18 (rpm) mod_jk 1.2.2 (rpm) #apache myVH.conf ErrorDocument 500 /jsp/500.jsp #tomcat myapps/WEB-INF/web.xml 500 /jsp/500.jsp apache gets a 500 error code # myapps_access_log 193.52.112.54 - - [05/Jul/2004:15:52:49 +0200] "GET /Login.do HTTP/1.1" 500 3990 but the browser prints the default tomcat error page and not my customized 500.jsp ... PS : there's no compilation problem in my 500.jsp, it could have been the reason why tomcat can't print it and redirects to it's own 500 error page *** Second, I have a java tomcat process recycling problem. I thought that even there are cycles in a java code, the following line in the tomcat4.conf was there to kill properly these non recycling processes : # Time to wait in seconds, before killing process SHUTDOWN_WAIT=30 But they stay with the "running" status and "eat" all the free CPU of my machine (between 90 and 100 % of cpu until the processes come in). Any ideas ? Thanks in advance :) Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Fax: 02 40 99 83 84 / abroad + (33) 240 99 83 84 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to catch and redirect an error code 500 with Tomcat apache ?
Hi everyone I can't manage to redirect a 500 error code page to a customized error page, even I can't see any trouble in my conf's files. # config Linux RedHat 7.1 Apache 1.3.27 (rpm) Tomcat 4.1.18 (rpm) mod_jk 1.2.2 (rpm) #apache myVH.conf ErrorDocument 500 /jsp/500.jsp #tomcat myapps/WEB-INF/web.xml 500 /jsp/500.jsp apache gets a 500 error code # myapps_access_log 193.52.112.54 - - [05/Jul/2004:15:52:49 +0200] "GET /Login.do HTTP/1.1" 500 3990 but the browser prints the default tomcat error page and not my customized 500.jsp ... PS : there's no compilation problem in my 500.jsp, it could have been the reason why tomcat can't print it and redirects to it's own 500 error page I posted the message before, someone told me about a "ROOT" webapps and creating a web.xml into this with the erro-page directive, but it does nothing ... Thanks in advance :) Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Fax: 02 40 99 83 84 / abroad + (33) 240 99 83 84 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to catch and redirect an error code 500 with Tomcat apache ?
Hi everyone I can't manage to redirect a 500 error code page to a customized error page, even I can't see any trouble in my conf's files. # config Linux RedHat 7.1 Apache 1.3.27 (rpm) Tomcat 4.1.18 (rpm) mod_jk 1.2.2 (rpm) #apache myVH.conf ErrorDocument 500 /jsp/500.jsp #tomcat myapps/WEB-INF/web.xml 500 /jsp/500.jsp apache gets a 500 error code # myapps_access_log 193.52.112.54 - - [05/Jul/2004:15:52:49 +0200] "GET /Login.do HTTP/1.1" 500 3990 but the browser prints the default tomcat error page and not my customized 500.jsp ... PS : there's no compilation problem in my 500.jsp, it could have been the reason why tomcat can't print it and redirects to it's own 500 error page Thanks in advance :) Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Fax: 02 40 99 83 84 / abroad + (33) 240 99 83 84 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat apache error code 500
Hi everyone I can't manage to redirect a 500 error code page to a customized error page, even I can't see any trouble in my conf's files. # config Linux RedHat 7.1 Apache 1.3.27 (rpm) Tomcat 4.1.18 (rpm) mod_jk 1.2.2 (rpm) #apache myVH.conf ErrorDocument 500 /jsp/500.jsp #tomcat myapps/WEB-INF/web.xml 500 /jsp/500.jsp apache gets a 500 error code # myapps_access_log 193.52.112.54 - - [05/Jul/2004:15:52:49 +0200] "GET /Login.do HTTP/1.1" 500 3990 but the browser prints the default tomcat error page and not my customized 500.jsp ... PS : there's no compilation problem in my 500.jsp, it could have been the reason why tomcat can't print it and redirects to it's own 500 error page Thanks in advance :) Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Fax: 02 40 99 83 84 / abroad + (33) 240 99 83 84 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : using mod_rewrite with mod_jk2
Hi jon, I don't use mod_jk2, but mod_jk (apache 1.3.27), and it works fine only when mod_rewrite is loaded before mod_jk in httpd.conf (for both "LoadModule" and "AddModule" directives) > -Message d'origine- > De : Andy Eastham [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 17 décembre 2003 19:59 > À : 'Tomcat Users List' > Objet : RE: using mod_rewrite with mod_jk2 > > Jon, > > I'm pretty sure you can, because I once had a problem which was fixed by > swapping the order of the "LoadModule" statements for mod_jk2 and > mod_rewrite. > > Not an exact answer, but hopefully some encouragement... > > Andy > > -Original Message- > From: jon yeargers [mailto:[EMAIL PROTECTED] > Sent: 17 December 2003 18:01 > To: [EMAIL PROTECTED] > Subject: using mod_rewrite with mod_jk2 > > In what order do the various mod_* bits interact? > > Can I use mod_rewrite to setup the URL for passage to mod_jk2? > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.29 start / stop problem
Hi everyone, I start tomcat with the method below (in order the user nobody to run tomcat porcesses): [EMAIL PROTECTED] # su - nobody -c $CATALINA_HOME/bin/startup.sh Using CATALINA_BASE: /var/tomcat Using CATALINA_HOME: /var/tomcat Using CATALINA_TMPDIR: /var/tomcat/temp Using JAVA_HOME: /usr/java/java [EMAIL PROTECTED] # ps -aux --> gives the process ran by nobody ... But when I try to stop tomcat, it tells me: [EMAIL PROTECTED] # su - nobody -c $CATALINA_HOME/bin/shutdown.sh Using CATALINA_BASE: /var/tomcat Using CATALINA_HOME: /var/tomcat Using CATALINA_TMPDIR: /var/tomcat/temp Using JAVA_HOME: /usr/java/java Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.(Socket.java:309) at java.net.Socket.(Socket.java:124) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) And the tomcat processes are always running ... Any ideas ? Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to set the user runnig tomcat ? ( + start/stop problem)
Hi everyone, I used to run a tomcat 4.1.18 rpm on a linux top box, where I put the TOMCAT_USER variable in a tomcat4.conf file ( nobody user in my case ...) Now i try to upgrade to 4.1.29 full archive (jakarta-tomcat-4.1.29.tar.gz) and I didn't see any doc's on configuring this variable .. Is the only solution to execute the startup.sh script as the running user ? ( the command line under a root session could be : su - nobody -c $CATALINA_HOME/bin/startup.sh ) Another problem: I start tomcat with the method up in the message: [EMAIL PROTECTED] # su - nobody -c $CATALINA_HOME/bin/startup.sh Using CATALINA_BASE: /var/tomcat Using CATALINA_HOME: /var/tomcat Using CATALINA_TMPDIR: /var/tomcat/temp Using JAVA_HOME: /usr/java/java [EMAIL PROTECTED] # ps -aux --> gives the process ran by nobody ... [EMAIL PROTECTED] # su - nobody -c $CATALINA_HOME/bin/shutdown.sh Using CATALINA_BASE: /var/tomcat Using CATALINA_HOME: /var/tomcat Using CATALINA_TMPDIR: /var/tomcat/temp Using JAVA_HOME: /usr/java/java Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.(Socket.java:309) at java.net.Socket.(Socket.java:124) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) And the tomcat processes are always running ... Any ideas ? ( i added the correct env in /etc/profile for every user) Thanks in advance :-) Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache cannot load jk2
hi, try to rename the mod_jk2-x.dll into mod_jk2.dll ... Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] > -Message d'origine- > De : Jean-Max Estay [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 23 octobre 2003 15:37 > À : [EMAIL PROTECTED] > Objet : Apache cannot load jk2 > > > Hello, > > I use the ${Apache2} in this mail for the path of my apache install. > > Using mod_jk2-1.3.27.dll to connect Apache2 (2.0.47 win 32) on Windows XP > Pro and Tomcat 4.1.27 on the same host, > The file mod_jk2-1.3.27.dll is in ${Apache2}/modules > After creating the files stdout.log, stderr.log, > jk2.shm,workers2.properties > Apache is running OK on port 80, Tomcat OK on 8080 > When adding at the end of the Apache config file httpd.conf the lines > > # LoadModule jk2_module modules/mod_jk2-1.3.27.dll > > I have, when testing the apache config, the error message > JK2 : Cannot load ${Apache2}/modules/mod_jk2-1.3.27.dll into server: Le > module spécifié est introuvable. > (the required module was not found) > > After reading many and many Howto, news and html pages, I don't find the > solution > > Who can help me ? > > Dr Jean-Max Estay > [EMAIL PROTECTED] > http://www.ima.uco.fr/personnes/estay > Institut de Mathématiques Appliquées > Université Catholique de l'Ouest > 44,46 rue Rabelais > BP 808 > 49008 ANGERS Cedex 01 > France > tel +33 2 41 81 67 05 > fax +33 2 41 81 67 00 > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error-page directive gives a wrong response code to apache
it works great ! thanks a lot for your tip's, both Tim & Johann :-) Julien OIX Service Informatique de Gestion - Universite de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] > -Message d'origine- > De : Tim Funk [mailto:[EMAIL PROTECTED] > Envoye : mercredi 22 octobre 2003 14:25 > A : Tomcat Users List > Objet : Re: error-page directive gives a wrong response code to apache > > > If you have a custom error page, its the job of the page to > explicitly set > the error code. This is because errors may *not* be errors and > the error page > may have logic to recover from various errors. > > You'll see this behavior in other servlet engines too. > > In your error page, you'll need this snippet: > <%response.setStatus(HttpServletResponse.SC_NOT_FOUND);%> > > -Tim > > Julien Oix wrote: > > hi everyone, > > > > I have a problem with the error-page directive included in my web.xml > > > > The RPM's I use on a Linux RedHat top box : > > > > apache-1.3.27-2.7.1 > > tomcat4-4.1.18-full.1jpp > > mod_jk-ap13-1.2.2-1jpp > > > > so when apache gives a jsp to Tomcat, this one answers a code > 200 instead of > > a 404 in the apache log even if the jsp is not found ... > > > > I know this bug is in the bugzilla database as "RESOLVED" yet ( > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15406 ) but for 4.1.12 > > version so I can't understand what happens ... > > > > > > the interesting part of my web.xml : > > > > > > > > 403 > > /error/403.jsp > > > > > > > > 404 > > /error/404.jsp > > > > > > ## > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error-page directive gives a wrong response code to apache
hi everyone, I have a problem with the error-page directive included in my web.xml The RPM's I use on a Linux RedHat top box : apache-1.3.27-2.7.1 tomcat4-4.1.18-full.1jpp mod_jk-ap13-1.2.2-1jpp so when apache gives a jsp to Tomcat, this one answers a code 200 instead of a 404 in the apache log even if the jsp is not found ... I know this bug is in the bugzilla database as "RESOLVED" yet ( http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15406 ) but for 4.1.12 version so I can't understand what happens ... the interesting part of my web.xml : 403 /error/403.jsp 404 /error/404.jsp ## has anyone an idea ? thanks in advance, Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_webapp.so build problem (BIS)
hi everyone, I'm running an apache server on a RedHat top box ... I've downloaded the latest sources from the apache CVS server (checkout webapp / checkout apr) here's what I do to get the webapp module: cd /usr/local/jakarta-tomcat-connectors/webapp/ ./support/buildconf.sh and what I get as error: -- --- Checking "autoconf" version autoconf version 2.52 detected. --- Running APR "buildconf" script buildconf: checking installation... buildconf: autoconf version 2.52 (ok) buildconf: libtool version 1.3.5 (ok) Copying libtool helper files ... Creating include/arch/unix/apr_private.h.in ... NONE:0: /usr/bin/m4: `syncoutput' from frozen file not found in builtin table! NONE:0: /usr/bin/m4: `changesyntax' from frozen file not found in builtin table! autoheader: include/arch/unix/apr_private.h.in is unchanged Creating configure ... NONE:0: /usr/bin/m4: `syncoutput' from frozen file not found in builtin table! NONE:0: /usr/bin/m4: `changesyntax' from frozen file not found in builtin table! --- Creating WebApp "configure" script Creating configure ... NONE:0: /usr/bin/m4: `syncoutput' from frozen file not found in builtin table! NONE:0: /usr/bin/m4: `changesyntax' from frozen file not found in builtin table! any ideas ? thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mailto: [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
mod_webapp sources
hi everyone, when I retrieve mod_webapp from CVS server , everything is OK. but now, when I run ./support/buildconf.sh from $BASE/jakarta-tomcat-connectors/webapp this scripts tells me that my "autoconf" version is too old: autoconf version 2.13 found. autoconf version 2.52 or newer required to build from CVS. I'm on a RedHat 7.1, and I can't fnid any newer "autoconf" version for this distrib How can I do to compile my mod_webapp.so ? Thanks in advance . -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mailto: [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Re: Apache 2.0 and Tomcat 4.0, index.jsp
Torsten Fohrer a écrit : > > I get Tomcat 4.03 with the Connectors 4.0.4b and Apache working, > but even if i put > >>> DirectoryIndex index.jsp index.htm > in httpd.conf. Tomcat ignores them > > could somebody..have a answer > > thanks > edit $TOMCAT_HOME/conf/web.xml or your $TOMCAT_HOME/webapps/$YOURAPP/WEB-INF/web.xml; at the end of this file, you find the section, which has the same effect that directive under Apache index.jsp frameset.html accueil.htm default.htm hopes this helps > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
memory usage
hi everyone, I'm using these RPM's on a Linux RedHat 7.1 apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 mod_bandwidth-2.0.3-2) tomcat4-4.0.2-3 servletapi4-4.0.2-1 xerces-j-1.4.4-2 regexp-1.2-5 MySQL-3.23.47-1 MySQL-client-3.23.47-1 and IBMJava2-SDK-1.3-10.0 for the Java machine, as said in the tomcat's install my server has 2 Gb's memory and use the whole even when there's no connection. Is this normal ? Do I have to parameter Tomcat ? or anything else ? Thanks in advance . -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
test
just a test -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
mod_webapp problem
hi everyone, I'm using Tomcat4 and Apache (mod_webapp connector) on a Linux RedHat 7.1; to build my connector, I do a snapshot from CVS repository: cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarta-tomcat-connectors/webapp cd jakarta-tomcat-connectors/webapp/ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout apr then, ./support/buildconf.sh ./configure --with-apxs=/usr/sbin/apxs --with-apr=./apr/ make and I move my mod_webapp.so to my apache module directory if I stop here, access control directives from apache can't work ( sections and .htaccess ); I can't accept that, that's one of the reasons why I'm using Tomcat AND apache I had a solution, which was to apply before compiling a patch (see attached file); the effect of it should be the capacity to add WebAppIgnore directives to my httpd.conf, but a second effect was that my control directives worked !! this solution (CVS + patch) worked fine last week, but now with the same protocol, when I try a jsp, I have the source code in my browser, and when I call a servlet in a .html, here's what I get in my error_log: [Thu Apr 4 11:10:01 2002] [error] [client 193.52.112.79] File does not exist: /var/tomcat4/webapps/univ/servlet/com.jsbsoft.jtf.core.SG in first case, can I consider there's a bug in CVS sources ? any ideas are welcome thanks in advance. Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] ## mod_webapp.patch ### --- apache-1.3/mod_webapp.c Wed Feb 13 17:53:58 2002 +++ apache-1.3/mod_webapp.c.new Sat Mar 23 17:30:05 2002 @@ -227,6 +227,16 @@ return(NULL); } +/* Allow the option to override certain urls */ +static const char *wam_directive_ignore(cmd_parms *parms, void *mconfig, char *w) { + wa_virtualhost *vhost = NULL; + vhost = (wa_virtualhost *)ap_get_module_config(parms->server->module_config, &webapp_module); + if(wa_ignore(vhost, w) != NULL) { + ap_log_error(APLOG_MARK,APLOG_NOERRNO|APLOG_ERR, parms->server,"Cannot add new ignore url"); + } + return NULL; +} + /* The list of Directives for the WebApp module */ static const command_rec wam_directives[] = { { @@ -250,7 +260,14 @@ RSRC_CONF, /* where available */ TAKE3, /* arguments */ " " -}, {NULL} +}, { + "WebAppIgnore", + wam_directive_ignore, + NULL, + RSRC_CONF, + ITERATE, + "" + }, {NULL} }; @@ -410,7 +427,7 @@ /* Set the webapp request structure into Apache's request structure */ ap_set_module_config(r->request_config, &webapp_module, appl); -return(OK); +return(DECLINED); } /* Handle the current request */ @@ -420,6 +437,7 @@ wa_application *appl=NULL; wa_request *req=NULL; const char *msg=NULL; + ignore_urls *igurls = NULL; char *stmp=NULL; char *ctmp=NULL; char *ssl_temp; @@ -431,6 +449,14 @@ /* Try to get a hold on the webapp request structure */ appl=(wa_application *)ap_get_module_config(r->request_config, &webapp_module); + + /* Now check for ignored urls */ + for(igurls = appl->host->ignore_urls; igurls; igurls = igurls->next) { + if(apr_fnmatch(igurls->url, r->uri) == APR_SUCCESS) { + return(DECLINED); + } + } + if (appl==NULL) return(DECLINED); /* Allocate the webapp request structure */ --- lib/wa_config.c Wed Feb 13 17:53:58 2002 +++ lib/wa_config.c.new Sat Mar 23 17:28:29 2002 @@ -121,6 +121,7 @@ host->name=apr_pstrdup(wa_pool,n); host->port=p; host->apps=NULL; + host->ignore_urls = NULL; /* Done! :) */ wa_debug(WA_MARK,"Created virtual host \"%s:%d\"",host->name,host->port); @@ -168,4 +169,14 @@ n,p,a); *c=conn; return(NULL); +} + +/* Add an ignored url to a virtual host */ +const char *wa_ignore(wa_virtualhost *vhost, char *url) { + ignore_urls *ig = vhost->ignore_urls; + ignore_urls *igu = apr_palloc(wa_pool, sizeof(ignore_urls)); + igu->url = apr_pstrdup(wa_pool, url); + igu->next = ig; + vhost->ignore_urls = igu; + return(NULL); } --- include/wa_config.h Wed Feb 13 17:53:58 2002 +++ include/wa_config.h.new Sat Mar 23 17:36:32 2002 @@ -63,6 +63,14 @@ #ifndef _WA_CONFIG_H_ #define _WA_CONFIG_H_ +/** + * What a 'orrible hack + */ +typedef struct { + char *url; + void *next; +} ignore_urls; + /** * The WebApp Library connection structure. * @@ -91,6 +99,8 @@ char *name; /** The virtual host port. */ int port; + /* Patterns to ignore */ + ignore_urls *ignore_urls; /** The list of all applications deployed in this virtual hosts. */ wa_chain *apps; }; @@ -167,5 +177,8 @@ const char *n,
mod_webapp problem
hi everyone, I'm using Tomcat4 and Apache (mod_webapp connector) on a Linux RedHat 7.1; to build my connector, I do a snapshot from CVS repository: cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarta-tomcat-connectors/webapp cd jakarta-tomcat-connectors/webapp/ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout apr then, ./support/buildconf.sh ./configure --with-apxs=/usr/sbin/apxs --with-apr=./apr/ make and I move my mod_webapp.so to my apache module directory if I stop here, access control directives from apache can't work ( sections and .htaccess ); I can't accept that, that's one of the reasons why I'm using Tomcat AND apache I had a solution, which was to apply before compiling a patch (see attached file); the effect of it should be the capacity to add WebAppIgnore directives to my httpd.conf, but a second effect was that my control directives worked !! this solution (CVS + patch) worked fine last week, but now with the same protocol, when I try a jsp, I have the source code in my browser, and when I call a servlet in a .html, here's what I get in my error_log: [Thu Apr 4 11:10:01 2002] [error] [client 193.52.112.79] File does not exist: /var/tomcat4/webapps/univ/servlet/com.jsbsoft.jtf.core.SG in first case, can I consider there's a bug in CVS sources ? any ideas are welcome thanks in advance. Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] --- apache-1.3/mod_webapp.c Wed Feb 13 17:53:58 2002 +++ apache-1.3/mod_webapp.c.new Sat Mar 23 17:30:05 2002 @@ -227,6 +227,16 @@ return(NULL); } +/* Allow the option to override certain urls */ +static const char *wam_directive_ignore(cmd_parms *parms, void *mconfig, char *w) { + wa_virtualhost *vhost = NULL; + vhost = (wa_virtualhost *)ap_get_module_config(parms->server->module_config, +&webapp_module); + if(wa_ignore(vhost, w) != NULL) { + ap_log_error(APLOG_MARK,APLOG_NOERRNO|APLOG_ERR, parms->server,"Cannot add new +ignore url"); + } + return NULL; +} + /* The list of Directives for the WebApp module */ static const command_rec wam_directives[] = { { @@ -250,7 +260,14 @@ RSRC_CONF, /* where available */ TAKE3, /* arguments */ " " -}, {NULL} +}, { + "WebAppIgnore", + wam_directive_ignore, + NULL, + RSRC_CONF, + ITERATE, + "" + }, {NULL} }; @@ -410,7 +427,7 @@ /* Set the webapp request structure into Apache's request structure */ ap_set_module_config(r->request_config, &webapp_module, appl); -return(OK); +return(DECLINED); } /* Handle the current request */ @@ -420,6 +437,7 @@ wa_application *appl=NULL; wa_request *req=NULL; const char *msg=NULL; + ignore_urls *igurls = NULL; char *stmp=NULL; char *ctmp=NULL; char *ssl_temp; @@ -431,6 +449,14 @@ /* Try to get a hold on the webapp request structure */ appl=(wa_application *)ap_get_module_config(r->request_config, &webapp_module); + + /* Now check for ignored urls */ + for(igurls = appl->host->ignore_urls; igurls; igurls = igurls->next) { + if(apr_fnmatch(igurls->url, r->uri) == APR_SUCCESS) { + return(DECLINED); + } + } + if (appl==NULL) return(DECLINED); /* Allocate the webapp request structure */ --- lib/wa_config.c Wed Feb 13 17:53:58 2002 +++ lib/wa_config.c.new Sat Mar 23 17:28:29 2002 @@ -121,6 +121,7 @@ host->name=apr_pstrdup(wa_pool,n); host->port=p; host->apps=NULL; + host->ignore_urls = NULL; /* Done! :) */ wa_debug(WA_MARK,"Created virtual host \"%s:%d\"",host->name,host->port); @@ -168,4 +169,14 @@ n,p,a); *c=conn; return(NULL); +} + +/* Add an ignored url to a virtual host */ +const char *wa_ignore(wa_virtualhost *vhost, char *url) { + ignore_urls *ig = vhost->ignore_urls; + ignore_urls *igu = apr_palloc(wa_pool, sizeof(ignore_urls)); + igu->url = apr_pstrdup(wa_pool, url); + igu->next = ig; + vhost->ignore_urls = igu; + return(NULL); } --- include/wa_config.h Wed Feb 13 17:53:58 2002 +++ include/wa_config.h.new Sat Mar 23 17:36:32 2002 @@ -63,6 +63,14 @@ #ifndef _WA_CONFIG_H_ #define _WA_CONFIG_H_ +/** + * What a 'orrible hack + */ +typedef struct { + char *url; + void *next; +} ignore_urls; + /** * The WebApp Library connection structure. * @@ -91,6 +99,8 @@ char *name; /** The virtual host port. */ int port; + /* Patterns to ignore */ + ignore_urls *ignore_urls; /** The list of all applications deployed in this virtual hosts. */ wa_chain *apps; }; @@ -167,5 +177,8 @@ const char *n, const char *p, const char *a); + +/* Ignore certain urls */ +c
[REPOST: mod_webapp problem]
--- Begin Message --- hi everyone, I'm using Tomcat4 and Apache (mod_webapp connector) on a Linux RedHat 7.1; to build my connector, I do a snapshot from CVS repository: cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarta-tomcat-connectors/webapp cd jakarta-tomcat-connectors/webapp/ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout apr then, ./support/buildconf.sh ./configure --with-apxs=/usr/sbin/apxs --with-apr=./apr/ make and I move my mod_webapp.so to my apache module directory if I stop here, access control directives from apache can't work ( sections and .htaccess ); I can't accept that, that's one of the reasons why I'm using Tomcat AND apache I had a solution, which was to apply before compiling a patch (see attached file); the effect of it should be the capacity to add WebAppIgnore directives to my httpd.conf, but a second effect was that my control directives worked !! this solution (CVS + patch) worked fine last week, but now with the same protocol, when I try a jsp, I have the source code in my browser, and when I call a servlet in a .html, here's what I get in my error_log: [Thu Apr 4 11:10:01 2002] [error] [client 193.52.112.79] File does not exist: /var/tomcat4/webapps/univ/servlet/com.jsbsoft.jtf.core.SG in first case, can I consider there's a bug in CVS sources ? any ideas are welcome thanks in advance. Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] --- apache-1.3/mod_webapp.c Wed Feb 13 17:53:58 2002 +++ apache-1.3/mod_webapp.c.new Sat Mar 23 17:30:05 2002 @@ -227,6 +227,16 @@ return(NULL); } +/* Allow the option to override certain urls */ +static const char *wam_directive_ignore(cmd_parms *parms, void *mconfig, char *w) { + wa_virtualhost *vhost = NULL; + vhost = (wa_virtualhost *)ap_get_module_config(parms->server->module_config, +&webapp_module); + if(wa_ignore(vhost, w) != NULL) { + ap_log_error(APLOG_MARK,APLOG_NOERRNO|APLOG_ERR, parms->server,"Cannot add new +ignore url"); + } + return NULL; +} + /* The list of Directives for the WebApp module */ static const command_rec wam_directives[] = { { @@ -250,7 +260,14 @@ RSRC_CONF, /* where available */ TAKE3, /* arguments */ " " -}, {NULL} +}, { + "WebAppIgnore", + wam_directive_ignore, + NULL, + RSRC_CONF, + ITERATE, + "" + }, {NULL} }; @@ -410,7 +427,7 @@ /* Set the webapp request structure into Apache's request structure */ ap_set_module_config(r->request_config, &webapp_module, appl); -return(OK); +return(DECLINED); } /* Handle the current request */ @@ -420,6 +437,7 @@ wa_application *appl=NULL; wa_request *req=NULL; const char *msg=NULL; + ignore_urls *igurls = NULL; char *stmp=NULL; char *ctmp=NULL; char *ssl_temp; @@ -431,6 +449,14 @@ /* Try to get a hold on the webapp request structure */ appl=(wa_application *)ap_get_module_config(r->request_config, &webapp_module); + + /* Now check for ignored urls */ + for(igurls = appl->host->ignore_urls; igurls; igurls = igurls->next) { + if(apr_fnmatch(igurls->url, r->uri) == APR_SUCCESS) { + return(DECLINED); + } + } + if (appl==NULL) return(DECLINED); /* Allocate the webapp request structure */ --- lib/wa_config.c Wed Feb 13 17:53:58 2002 +++ lib/wa_config.c.new Sat Mar 23 17:28:29 2002 @@ -121,6 +121,7 @@ host->name=apr_pstrdup(wa_pool,n); host->port=p; host->apps=NULL; + host->ignore_urls = NULL; /* Done! :) */ wa_debug(WA_MARK,"Created virtual host \"%s:%d\"",host->name,host->port); @@ -168,4 +169,14 @@ n,p,a); *c=conn; return(NULL); +} + +/* Add an ignored url to a virtual host */ +const char *wa_ignore(wa_virtualhost *vhost, char *url) { + ignore_urls *ig = vhost->ignore_urls; + ignore_urls *igu = apr_palloc(wa_pool, sizeof(ignore_urls)); + igu->url = apr_pstrdup(wa_pool, url); + igu->next = ig; + vhost->ignore_urls = igu; + return(NULL); } --- include/wa_config.h Wed Feb 13 17:53:58 2002 +++ include/wa_config.h.new Sat Mar 23 17:36:32 2002 @@ -63,6 +63,14 @@ #ifndef _WA_CONFIG_H_ #define _WA_CONFIG_H_ +/** + * What a 'orrible hack + */ +typedef struct { + char *url; + void *next; +} ignore_urls; + /** * The WebApp Library connection structure. * @@ -91,6 +99,8 @@ char *name; /** The virtual host port. */ int port; + /* Patterns to ignore */ + ignore_urls *ignore_urls; /** The list of all applications deployed in this virtual hosts. */ wa_chain *apps; }; @@ -167,5 +177,8 @@ const char *n, const char *p, const char *a); + +/*
Re: error page customization
Gary McGowan a écrit : > > In the web.xml file you can define error pages > > Example: > > > 404 > /missing.jsp > > > And so on > > You can also define error pages for any exceptions: (again in web.xml) > > Example : > > > > java.lang.ArrayIndexOutOfBoundsException > /error.html > > > Gary thanks a lot :-) > - Original Message - > From: "Julien OIX" <[EMAIL PROTECTED]> > To: "Tomcat list" <[EMAIL PROTECTED]> > Sent: Wednesday, April 03, 2002 2:06 PM > Subject: error page customization > > > hi everyone, > > > > I'm using Tomcat4 and Apache (mod_webapp connector) on a Linux RedHat > > 7.1; > > > > If I want to define templates for 404 or 403 errors, where do I have to > > configure this stuff ? > > > > If Apache, with ErrorDocument directives in my virtual host > > > > If Tomcat, where can I configure this ? (I'm using the default web.xml > > for my application) > > > > thanks in advance. > > > > -- > > Julien OIX > > Service Informatique de Gestion > > Tél: 02 40 99 83 65 > > mail: [EMAIL PROTECTED] > > > > -- > > To unsubscribe: <mailto:[EMAIL PROTECTED]> > > For additional commands: <mailto:[EMAIL PROTECTED]> > > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
error page customization
hi everyone, I'm using Tomcat4 and Apache (mod_webapp connector) on a Linux RedHat 7.1; If I want to define templates for 404 or 403 errors, where do I have to configure this stuff ? If Apache, with ErrorDocument directives in my virtual host If Tomcat, where can I configure this ? (I'm using the default web.xml for my application) thanks in advance. -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Re: tomcat - nobody
"[EMAIL PROTECTED]" a écrit : > > Hi all, > > I have tomcat 4.0.3 installed with apache 1.3.23. All is ok but I have > a question. > I start apache as nobody/nobody and I'd like starting tomcat as > nobody/nobody while now I'm starting tomcat as root/root. > > How can I start tomcat as nobody/nobody? > Does it exist a script? > What must I modify? > Plese help me > > Thanks for your advices > > Laura > > if U're on a linux machine, search for a file named tomcat4.conf (on redhat, located in /etc/tomcat4/conf) U'll find a line for definition of TOMCAT_USER. I don't know if U can define the group elsewhere ... hopes this helps. -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Directory browsing
hi everyone, I'm using Tomcat/Apache service; in my default web.xml, located in $TOMCAT_HOME/conf, I've these lines: default org.apache.catalina.servlets.DefaultServlet listings false 1 so, directory browsing is forbidden by default; Is this possible to specify in this file a directory under my webapp directory which could be browsed ? if not, in an other file ? but for the moment, I don't have any $WEBAPP_HOME/WEB_INF/web.xml ... thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Apache/Tomcat performance ...
hi everyone, using mod_webapp to connect Tomcat and Apache, I'm asking a question: even gif's and jpeg's being served by tomcat (mod_webapp catching every request), does apache have some utility in this config ? I was told that a tomcat's weakness was serving images ... A solution would be to use mod_jk (you can map tomcat's requests). Any extensions to my question are appreciated . -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
jar's include ...
hi everyone, I'm using these RPM's on a Linux RedHat 7.1 apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 mod_bandwidth-2.0.3-2) tomcat4-4.0.2-3 servletapi4-4.0.2-1 xerces-j-1.4.4-2 regexp-1.2-5 Before, I used a tomcat4-4.0.1.x RPM's, which included mail.jar and activation.jar in /var/tomcat4/common/lib ; but with tomcat4-4.0.2.x, they are not included anymore. which RPM gives them now ? neither servletapi4-4.0.2-1, xerces-j-1.4.4-2 nor regexp-1.2-5, which are required to install tomcat4-4.à.2.x ... So, I didn't find any RPm which coud provide me mail.jar, activation.jar, ... any ideas ? thanks in advance. -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
sending mail exception ...
hi everyone, I'm trying to send mails thanks to javax.mail ... an exeption occurs ... -- StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP /var/tomcat4/work/site.univ-nantes.fr/_/jsp/test_0005fmail$jsp.java:39: Class javax.mail.NoSuchProviderException not found in try. try { ^ 1 error org.apache.jasper.JasperException: Unable to compile class for JSP /var/tomcat4/work/site.univ-nantes.fr/_/jsp/test_0005fmail$jsp.java:39: Class javax.mail.NoSuchProviderException not found in try. try { ^ 1 error at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:217) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194) at java.lang.Thread.run(Thread.java:498) any ideas ? thanks in advance Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
jar's include ...
hi everyone, I'm using these RPM's on a Linux RedHat 7.1 apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 mod_bandwidth-2.0.3-2) tomcat4-4.0.2-3 servletapi4-4.0.2-1 xerces-j-1.4.4-2 regexp-1.2-5 Before, I used a tomcat4-4.0.1.x RPM's, which included mail.jar and activation.jar in /var/tomcat4/common/lib ; but with tomcat4-4.0.2.x, they are not included anymore. which RPM gives them now ? thanks in advance. -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
include of jar's
hi everyone, in some tomcat4-4.0.1.x RPM's, mail.jar is included; but with tomcat4-4.0.2.x, it's no more. which RPM gives them now ? thanks in advance. -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Re: Compiling mod_webapp.so ...
Charles Swarts a écrit : > > Yes, I had to do this too, to compile the mod_webapp module with EAPI > support. You are just missing one step. After you get the fresh cvs > snapshot (like you did ), go forth like this: > > # cd jakarta-tomcat-connectors/webapp > # ./support/buildconf.sh > # CFLAGS=-DEAPI > # ./configure --with-apxs=/usr/bin/apxs > #make thanks, charles; even with this flag, I always get the apache warning ... what's wrong ? (considering answer from brian ally, but being very curious) > > Then copy your compiled mod_webapp.so to where apache is going to look > for it: > > # cp apache-1.3/mod_webapp.so /usr/local/apache/libexec > > After doing so when you startup apache you will not see the EAPI warning. > Hope this helps, > > - Charles > > [EMAIL PROTECTED] wrote: > > >Hi everyone, > > > >Because of an upload file's bug with mod_webapp-1.0-2.i386.rpm, I've > >done a snapshot from cvs to compile my own .so . > >It seems that the bug has diseappered, but when I restart Apache, it > >tells me : > > > >Starting httpd: [Mon Mar 4 09:18:05 2002] [warn] Loaded DSO > >modules/mod_webapp.so uses plain Apache 1.3 API, this module might crash > >under EAPI! (please recompile it with -DEAPI) > > > > > >Here are the steps to compile : > > > >cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login > >cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout > >jakarta-tomcat-connectors/webapp > >cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout > >apr > > > >cd $SNAPSHOT/webapp > > > >./support/buildconf.sh > >./configure --with-apxs=/usr/bin/apxs --with-apr=./apr/ > >make > > > >and I get my mod_webapp.so in $SNAPSHOT/webapp/apache-1.3/ > > > >does anyone know where to include the -DEAPI compiling flag ? > > > >I'm using these RPM's on a Linux RedHat 7.1 > > > >apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 > >mod_bandwidth-2.0.3-2) > > > >tomcat4-4.0.2-3 > > > >thanks in advance. > > > >-- > >Julien OIX > >Service Informatique de Gestion > >Tél: 02 40 99 83 65 > >mail: [EMAIL PROTECTED] > > > >-- > >To unsubscribe: <mailto:[EMAIL PROTECTED]> > >For additional commands: <mailto:[EMAIL PROTECTED]> > >Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Compiling mod_webapp.so ...
Hi everyone, Because of an upload file's bug with mod_webapp-1.0-2.i386.rpm, I've done a snapshot from cvs to compile my own .so . It seems that the bug has diseappered, but when I restart Apache, it tells me : Starting httpd: [Mon Mar 4 09:18:05 2002] [warn] Loaded DSO modules/mod_webapp.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) Here are the steps to compile : cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout jakarta-tomcat-connectors/webapp cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout apr cd $SNAPSHOT/webapp ./support/buildconf.sh ./configure --with-apxs=/usr/bin/apxs --with-apr=./apr/ make and I get my mod_webapp.so in $SNAPSHOT/webapp/apache-1.3/ does anyone know where to include the -DEAPI compiling flag ? I'm using these RPM's on a Linux RedHat 7.1 apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 mod_bandwidth-2.0.3-2) tomcat4-4.0.2-3 thanks in advance. -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Tomcat 4.0.2 exception triying to access a Jsp ...
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:217) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194) at java.lang.Thread.run(Thread.java:498) any ideas ... ? -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Upload bug ...
hi everyone, I'm using these RPM's on a Linux RedHat 7.1 apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 mod_bandwidth-2.0.3-2) tomcat4-4.0.1-1 mod_webapp-1.0.2-1 and it seems there's a bug whit file upload ... Is this possible at this time to recompile a "clean" mod_webapp.so , and if not, does use of mod_jk.so permit file upload, and which RPM or source to take for ? Thanks in advance ... -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Configuring Tomcat/apache service with mod_jk
I've been trying Tomcat/Apache with mod_webapp and now I'd like to compare with mod_jk I'm using a RedHat 7.1 with these RPM's: apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 mod_bandwidth-2.0.3-2) tomcat4-4.0.2-2 mod_jk-1.3-1.0-1.4.0.2 # I have in my httpd.conf LoadModule jk_modulemodules/mod_jk.so When I start, my error_log says: Starting httpd: [Thu Feb 21 09:33:37 2002] [warn] Loaded DSO modules/mod_jk.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) How to recompile a RPM as said ? ## AddModule mod_jk.c Adding this directive crashes apache, it seems not to find this file, like me ( `locate mod_jk.c` matches nothing) and if I don't add this one, I can't use appropriate directives like JkWorkersFile any ideas ? Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Re: mod_proxy and getRemoteAddr()
GOMEZ Henri a écrit : > > >Does anyone know how I can get the remote address if I am > >using mod_proxy? I > >tried mod_webapp and had too many problems - has that matured since > >Tomcat-4.0? What about using AJP13? > > mod_jk is now fully support in TC 4.0.2, with ajp13 and load-balancing > support :) > so, what do I need to make work TC 4.0.2-2, apache 1.3.22.1-7 with ajp13 ? mod_jk-1.3-1.0-1.4.0.2.i386.rpm ??? seems to fail thanks in advance > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Configuring Tomcat/apache service with mod_jk
I've been trying Tomcat/Apache with mod_webapp and now I'd like to compare with mod_jk I'm using a RedHat 7.1 with these RPM's: apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 mod_bandwidth-2.0.3-2) tomcat4-4.0.2-2 mod_jk-1.3-1.0-1.4.0.2 #A part of httpd.conf LoadModule jk_modulemodules/mod_jk.so ###In my virtual Host section Port 8009 JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel info JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 workers.properties workers.tomcat_home=/var/tomcat4 workers.java_home=/opt/IBMJava2-13 ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=site.presidence.univ-nantes.fr worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr ### server.xml # and when I only try to start tomcat, I receive this in my error_log [Wed Feb 20 15:46:40 2002] [emerg] (2)No such file or directory: Error while opening the workers any ideas ? thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Configuring Tomcat/apache service with mod_jk
hi, I've been trying Tomcat/Apache with mod_webapp and now I'd like to compare with mod_jk I'm using a RedHat 7.1 with these RPM's: apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 mod_bandwidth-2.0.3-2) tomcat4-4.0.2-2 mod_jk-1.3-1.0-1.4.0.2 I didn't find any doc about this... what about Apache's auto-conf ? Has anyone a good resource about, or some examples about configuring this stuff ? Thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Re: COnfiguring Tomcat/apache with mod_jk
"Shiva.Devaguptapu" a écrit : > > Tell the versions. Using a RedHat 7.1 with these RPM's apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2 mod_bandwidth-2.0.3-2) tomcat4-4.0.2-2 mod_jk-1.3-1.0-1.4.0.2 > > -Original Message- > From: Julien OIX [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 19, 2002 2:51 PM > To: Tomcat list > Subject: COnfiguring Tomcat/apache with mod_jk > > hi, > > I've been trying Tomcat/Apache with mod_webapp and now I'd like to > compare with mod_jk > > I didn't find any doc about this... > > Has anyone a good resource about, or some examples about configuring > this stuff ? > > Thanks in advance > > -- > Julien OIX > Service Informatique de Gestion > Tél: 02 40 99 83 65 > mail: [EMAIL PROTECTED] > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
COnfiguring Tomcat/apache with mod_jk
hi, I've been trying Tomcat/Apache with mod_webapp and now I'd like to compare with mod_jk I didn't find any doc about this... Has anyone a good resource about, or some examples about configuring this stuff ? Thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Re: Arrrghhh how can i do it ?
Jean-Luc BEAUDET a écrit : > > Remy Maucherat a écrit : > > > > Remy Maucherat a écrit : > > > > > > > > David Smith a écrit : > > > > > > > > > > Yep i did it. > > > > > > > > > > But unluckyly it seems i miss the apr modules/sources... > > > > > > > > > > Is that normal ? > > > > > > > > JF pointed that out, but I don't see why we should include the sources > > of > > > > another project. I consider the user should get them himself. > > > > > > Well in the webapp-module-1.0.2-tc402-src.tar.gz apr is included... > > > So, why not include it ? > > > But maybe someone else did the trick... > > > > The source for j-t-c is supposed to be the source for the j-t-c repository > > only. I don't think we should include the source from another project > > (dowload it separately). > > JF did include the APR source in his archive. (different guy = different > > archive) > > > > > > Of course, if it's not documented anywhere, then that's a problem. > > > > > > Maybe when i red the doc i was a little.. tired. > > > > Np. Let me know if there's a problem. > > > > Remy > > > > -- > > To unsubscribe: <mailto:[EMAIL PROTECTED]> > > For additional commands: <mailto:[EMAIL PROTECTED]> > > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > Well i made both of the ways yu and David Smith gave to me. > > The resulting compiled code was a little different by the size... > > So i tested with the last code, it's OK ! > > The method: > > DownLoad complete package from: > http://cvs.apache.org/snapshots/jakarta-tomcat-connectors > and added > http://cvs.apache.org/snapshots/apr > and placed the incompressed files in > ~../webapp/apr dir. > > sh ./support/buildconf.sh > make > > All is OK ! > > Thank yu for all. > > Best regards. > > Jean-Luc B :O) > I compiled mod_webapp.so with : sh ./support/buildconf.sh configure --with-apxs=/usr/bin/apxs make when I restart apache/tomcat, I have this message: Loaded DSO modules/mod_webapp.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) when do I have to place the flag -DEAPI ? thanks in advance > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Re: tomcat 4 + apache 1.3 + WarpConnection
Domenico Piol a écrit : > > hi > i'm trying to get my tomcat installation work together with apache 1.3... > without success. tomcat works fine as standalone, but with WarpConnection > i get an error: > > *** error > 2002-02-11 08:51:53 [org.apache.catalina.connector.warp.WarpConnection] > Exception on socket > java.io.IOException: Premature packet header end > at org.apache.catalina.connector.warp.WarpConnection.recv(Unknown > Source) > at org.apache.catalina.connector.warp.WarpRequestHandler.handle > (Unknown Source) > at org.apache.catalina.connector.warp.WarpConnection.run(Unknown > Source) > at java.lang.Thread.run(Thread.java:484) > > 2002-02-11 08:51:54 [org.apache.catalina.connector.warp.WarpConnector] > Connection from localhost/127.0.0.1:2394 to localhost/127.0.0.1:8008 > 2002-02-11 08:51:54 > [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter > mappings (2) > 2002-02-11 08:51:54 > [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter > mappings (0) > *** > > i don't use a virtual host in my apache config, is that the problem ? my > configs look as follwows: > > *** server.xml *** > > > > port="8008" minProcessors="5" maxProcessors="75" > enableLookups="false" appBase="webapps" > acceptCount="10" debug="0"/> > > > prefix="apache_log." suffix=".txt" > timestamp="true"/> > > > > > > > > ** > > *** httpd.conf *** > ... > ServerName arakis.local > ... > LoadModule webapp_module /usr/lib/apache/mod_webapp.so > AddModule mod_webapp.c > ... > DocumentRoot "/usr/local/httpd/htdocs" > > ### NOT in a virtual host > WebAppConnectionconnwarplocalhost:8008 the previous line should match something like this: WebAppConnectionconnwarp$ServerName:8008 and in your case WebAppConnectionconnwarparakis.local:8008 and in my case, I've added a "Port" directive, matching the tomcat port which gives, just after your ServerName directive Port 8008 hopes this helps > WebAppDeploywebdav conn/webdav > WebAppDeployexamplesconn/examples > > WebAppInfo /webapp-info > ... > ** > > tomcat runs as user wwwrun, as well as apache. > > i'm thankfull for any hint... > > domenico > --- > domenico piol infometis ag > eidg. dipl. zuerich > wirtschaftsinformatikerswitzerland > > email: [EMAIL PROTECTED] > www: http://www.infometis.ch/users/dpiol/ > --- > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Re: Tomcat + Apache lifecycle question
Daniel Drasin a écrit : > > I've set up Tomcat 4.x to work with Apache 1.3.x using the > Warp connector stuff. I followed the standard instructions for > how to modify the httpd.conf file of apache, etc. (All pretty > straightforward...) My problem is that i need to have a certain > activity occur when Tomcat starts up. This activity is to initialize > a certain set of java objects and make them available to servlets. > Because of classpath issues (i.e. classloaders) i was unable to use > the lifecycle hooks of the contexts and had to settle for the > (hackish) method of making a dummy servlet that only exists to > have its value set (excerpt from the web.xml is > below). This servlet has an init() definition that initializes the > objects in question (example definition below.) > > The issue is that i need to have this activity occur once and only > once - so i add a static flag into the init method to see if it's > already run. However, this doesn't work. When i start tomcat, > the initialization code runs and when i start apache, it runs > again - despite the flag. (Output included below). > > My guess is that the flag doesn't help because these init() calls > are occuring in two different object spaces (class loaders) so the > flag really is false both times. > > So my question is - what's going on here. Fundamentally, how can > i achieve my goal outlined in paragraph 1. At a deeper level, my > question is - why do i get two calls to startup? Is tomcat starting > a new context for apache? If so, why doesn't it use the one that > it's already started? Is there a way to surpress the starting of > one of the contexts? > > Any help is appreciated > > Dan > -CODE AND OUTPUT--- > > ... > > > ServletTest > > > ServletTest > > 0 > ... > > ... > public class ServletTest extends HttpServlet { > static int i = 0; > static boolean flag = false; > static { > i++; > if(!flag) { > flag = true; > System.out.println("***GOT " + i + " **"); > } > } > ... > > ... > Starting service Tomcat-Standalon > Apache Tomcat/4.0.1 > ***GOT 1 ** delete this service ( everything in the right section ) from server.xml hope this helps > Starting service Tomcat-Apache > Apache Tomcat/4.0.1 > ***GOT 1 ** > ... > > -- > Daniel Drasin Applied Reasoning > [EMAIL PROTECTED] 8612 Long Meadow Ct. > (410)-461-6168 Columbia, MD, 21045 > http://www.appliedreasoning.com > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Re: index.jsp->index.html
Odo a écrit : > > How configure default page from index.jsp to index.html in Tomcat 4.0? > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> $TOMCAT_HOME/conf/web.xml (webapps default file) at end, section ... hope this helps -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Tomcat/Apache acces control
hi everybody, I have a question about access control using the Tomcat/Apache service, with the WARP connector in httpd.conf, when I only keep (out of the VH's section), AllowOverride None Order Allow,Deny Deny from all I still can access the site; Do I have to put these lines in my VH's section ? Does Tomcat have priority for access control ? if it does, how do I configure access control ? with which parameters ? in web.xml or server.xml ? I'm using RedHat 7.1, apache 1.3.22, mod_webapp and Tomcat 4.0.1 thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Re: YAMWQ - Yet Another Mod_Webapp Question
at-connectors-4.0.2-b2.patch from > tomcat4-4.0.2-b2.1.src.rpm > (though I can't remember where I got that src rpm?). > > I've unpacked it and am about to dive in but I thought I'd check > with the group here to see if I'm going along the right track. > > Should the above configuration work (once I get rid of the EAPI problem > with my freshly compiled mod_webapp.so)? > Maybe you need a Port Directive in your Virtual Host section like Port ( matches the port number specified in your server.xml at Connector section ) > One of the strange things (to me) is > the setup I've shown here is the actual production machine that I'm > trying to prepare. > My development/test machine OS/Apache is very similar (RedHat 7.1 instead) > and a very similar setup works fine. > > Thanks > Kevin. > > __ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Re: some tuning ...
KER.com.jsbsoft.jtf.core.SG]: Marking servlet org.apache.catalina.INVOKER.com.jsbsoft.jtf.core.SG as unavailable maybe it's a little confused, but I only have to deploy the webapp, I didn't write it. I suppose I have something to do with the Context->docbase (server.xml) or the DocumentRoot (httpd.conf), I tried many things, but nothing works ... if anyone has a idea ... thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
some tuning ...
hi, I'm using Tomcat 4.0.1-1, Apache 1.3.22 under RedHat Linux 7.1 here's my problem: my website can be accessed by a front-office or a back-office, but this is the same webapp ... I'd like the two parts can be reached either by mysite.mydomain.fr (path_to_webapp/index.jsp) and myadmin.mydomain.fr (path_to_webapp/adminsite/frameset.html) I suppose I deploy only one WarpConnector. How can I do ? I tried this way: put 2 VirtualHosts in httpd.conf, having the WebAppConnection in the main config and a WebAppDeploy in each; defined 2 Services in the server.xml with and directives it doesn't work has anyone some tips ? thanks in advance Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Re: Errors using warp connector
t org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) > Catalina.stop: LifecycleException: This server has not yet been started > LifecycleException: This server has not yet been started > at org.apache.catalina.core.StandardServer.stop(StandardServer.java:526) > at org.apache.catalina.startup.Catalina.start(Catalina.java:794) > at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) > at org.apache.catalina.startup.Catalina.process(Catalina.java:179) > at java.lang.reflect.Method.invoke(Native Method) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) > Catalina.start: LifecycleException: Error creating server socket: > java.net.BindException: Address already in use > LifecycleException: Error creating server socket: java.net.BindException: > Address already in use > at > org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.java:483) > at > org.apache.catalina.core.StandardService.initialize(StandardService.java:454) > at > org.apache.catalina.core.StandardServer.initialize(StandardServer.java:552) > at org.apache.catalina.startup.Catalina.start(Catalina.java:775) > at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) > at org.apache.catalina.startup.Catalina.process(Catalina.java:179) > at java.lang.reflect.Method.invoke(Native Method) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) > > -- > I am Microsoft of Borg. You will be assimilated. > Resistance is futi . . . > > GENERAL PROTECTION FAULT IN MSBORG32.DLL > -- > Donald Lee ([EMAIL PROTECTED]) try to put the "Port" Directive like this: Port 8008 hope it helps ... -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Re: Tomcat/Apache acces control
Anton Brazhnyk a écrit : > > Hi, > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Julien OIX > > Sent: Thursday, January 24, 2002 2:37 PM > > To: Tomcat list > > Subject: Tomcat/Apache acces control > > > > > > hi everybody, > > > > I'd like that directories under my Virtual Host's DocumentRoot can't be > > browsed by an URL ... > > > > I supposed that the Apache configuration could resolve this (in a > > directive, put the line "Options -Indexes"), but it doesn't > > work ...(browsing is always enabled by the Tomcat/Apache service!!) > > > > Is this with tomcat configuration (server.xml or web.xml) that I can > > control this stuff or do I have a problem with my httpd.conf ? > > > > I don't know about the way (if possible) to do it with Apache, > but you should be able to do it with Tomcat. > if you don't care about indexing in the apps other then yours > you could edit your CATALINA_BASE/conf/web.xml > > > default > org.apache.catalina.servlets.DefaultServlet > > debug > 0 > > > listings > false > > > > or you could disable an indexing in your app only, > in its web.xml : > > > my_default > org.apache.catalina.servlets.DefaultServlet > > debug > 0 > > > listings > false > > > > > my_default > / > > > > thanks in advance > > -- > > Julien OIX > > Service Informatique de Gestion > > T?l: 02 40 99 83 65 > > mail: [EMAIL PROTECTED] > > > > Hope it helps. > Anton. > That's right thanks a lot, anton -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Tomcat/Apache acces control
hi everybody, I'd like that directories under my Virtual Host's DocumentRoot can't be browsed by an URL ... I supposed that the Apache configuration could resolve this (in a directive, put the line "Options -Indexes"), but it doesn't work ...(browsing is always enabled by the Tomcat/Apache service!!) Is this with tomcat configuration (server.xml or web.xml) that I can control this stuff or do I have a problem with my httpd.conf ? Options None Order Allow,Deny Deny from all thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
question about TOMCAT_USER ...
hi averybody, I use the tomcat-apache service; the apache's user is nobody, and I'm asking what is the best choice for the TOMCAT_USER ? should I set him to nobody or an other user than the apache's one ? thanks in advance ... -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Tomcat-Apache security ...
hi everybody, I'd like that directories under my Virtual Host's DocumentRoot can't be indexed by an URL ... I supposed that the Aapche configuration could resolve this (in a directive, put the line "Options -Indexes"), but it doesn't work ... Is this with tomcat configuration (server.xml or web.xml) that I can coontrol this stuff ? thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
Tomcat / Apache problem ...
hi everyone, I have a little redirection problem with my tomcat/apache server ... here comes a part of my httpd.conf: / NameVirtualHost 193.52.112.79 Port 8011 ServerName miles.presidence.univ-nantes.fr ServerAdmin [EMAIL PROTECTED] DocumentRoot "/var/tomcat4/webapps/univ" ErrorLog logs/error_log DirectoryIndex index.jsp UseCanonicalName Off WebAppConnectionconn1 warp miles.presidence.univ-nantes.fr:8011 WebAppDeploy /var/tomcat4/webapps/univ conn1 / WebAppInfo /webapp-info/ Options All Order allow,deny Allow from all / here comes a part of myserver.xml / when I try the URL http://193.52.112.79 from the apache server, it redirects immediatly to http://193.52.112.79/index.jsp, with or without the DirectoryIndex directive here's what I get in my access_log with the first URL: 193.52.112.79 - - [11/Jan/2002:15:03:17 +0100] "GET / HTTP/1.0" 302 234 "-" 193.52.112.79 - - [11/Jan/2002:15:03:20 +0100] "GET /index.jsp HTTP/1.0" 200 12553 "-" but when I try the first URL from an other machine even of the same domain, it doesn't redirect 193.52.112.53 - - [11/Jan/2002:15:06:01 +0100] "GET / HTTP/1.1" 302 246 "-" and when I try http://193.52.112.79/index.jsp, it works fine. 193.52.112.53 - - [11/Jan/2002:15:20:24 +0100] "GET /index.jsp HTTP/1.1" 200 12566 "-" My system: Linux RedHat 7.1 Deluxe RPM's: apache-1.3.22-1.7.1 tomcat4-4.0-1 mod_webapp-1.0-1 does someone have a tip for this problem ? Thanks in advance -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
looking for solutions ...
hi, I can't find the solution May U help me ? My environment: Linux RedHat 7.1 and these RPMs apache-1.3.22-1.7.1 tomcat4-4.0-1 tomcat4-webapps-4.0-1 mod_webapp-1.0-1 jdk-1.3.1_01-fcs Some important lines of my httpd.conf WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples/ WebAppDeploy manager warpConnection /manager/ WebAppDeploy webdav warpConnection /webdav/ ServerName localhost Port 80 Port 8008 some lines of my server.xml when I enter "http://localhost:8008"; or "http://localhost:8008/examples"; in my browser, the connection is waiting and nothing happens ("blue screen "); here is what comes in my apache_log.txt 2001-12-18 15:21:05 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.io.IOException: Premature packet header end at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java) at java.lang.Thread.run(Thread.java:484) 2001-12-18 15:23:18 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.io.IOException: Premature packet payload end at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java) at org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(WarpConfigurationHandler.java) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java) at java.lang.Thread.run(Thread.java:484) thanks -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED]
need some help ...
Hi, I'm trying to link apache and tomcat My environment: Linux RedHat 7.1 and these RPMs apache-1.3.19-5 tomcat4-4.0.1-1 mod_webapp-0.5-dev.1 tomcat doc mentions a WebAppDeploy directive, but apache mentions a WebAppMount directive; what about ? In my opinion at this time, I should use an other mod_webapp RPM ( I've heard about a >= version 1); should I link my Document Root apache directive and my Tomcat app's directory ? and I haven't found any complete doc about the specific service Tomcat-apache (even if www.galatea.com is a good site) and install with RPMs. thanks -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED]
Tomcat configuration
Hi, I'm trying to configure tomcat within apache and I have many questions ... My environment: Linux RedHat 7.1 and these RPMs apache-1.3.19-5 tomcat4-4.0.1-1 tomcat4-webapps-4.0.1-1 jre-1.3.1_01-fcs tomcat-mod-3.2.3-1 mod_webapp-0.5-dev.1 jdk-1.3.1_01-fcs Questions: how to configure the connector between apache and tomcat ? may I use better mod_webapp or tomcat mod (in fact mod_webapp.so or mod_jk.so) ? I haven't found a complete documentation about this; has someone o good URL ? tomcat doc mentions a WebAppDeploy directive, but apache mentions a WebAppMount directive; what about ? thanks PS: I'm thinking about improving my english speech -- Julien OIX Service Informatique de Gestion Tél: 02 40 99 83 65 mail: [EMAIL PROTECTED] -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>