Problems with REX and mod_jk2
hi, I've compiled mod_jk2 2.0.2 for apache 2 (0.48) (Tomcat 4.1.24) and trying to use regular expressions to configure uris into workers2.properties like in: [uri:$/test/\w*] worker=ajp13:localhost:8009 context=/test debug=10 or something harder (but usefull) like: [uri:$/test/(?!\w*\.(gif|jpg)$)] I guessed that to specify a rex it must be prefixed by a $. Normal uris works well, but rex-uri seem to be recognized correctly but to cause a segmentation fault as reported in error_log: [notice] uriEnv.parseName() parsing /test/\w* regexp [notice] uriEnv.setAttribute() the worker directive is deprecated. Use 'group' instead. [notice] jk2_init() Found child 7680 in scoreboard slot 0 ... [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.2 configured -- resuming normal operations [notice] child pid 7684 exit signal Segmentation fault (11) [notice] child pid 7683 exit signal Segmentation fault (11) [notice] child pid 7682 exit signal Segmentation fault (11) [notice] child pid 7681 exit signal Segmentation fault (11) [notice] child pid 7680 exit signal Segmentation fault (11) and nothing works. After that, from log, I guess apache forks continuously trying to start some connection to tomcat and these childs die after some line of log. There is someone that can help me? thanks in advance max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Which JK2 version with apache 2.0.47 ?
Hello, Jonathan Morace, Florian Ebeling and others use mod_jk2-2.0.43.dll with Apache 2.0.47. I read on http://mir2.ovh.net/ftp.apache.org/dist/jakarta/tomcat-connectors/jk2/binari es/win32/ that mod_jk2-2.0.43.dll is for Apache 2.0.43 (and only 2.0.43) I try mod_jk2-1.3.27.dll because on the same page I read Even if it works with Apache 1.3, JK2 has been developed with Apache 2.0 in mind but it's not operating with Apache 2.0.47 What is the meaning of (and only 2.0.43)? Which must be the level of compatibility between Apache and JK2 ? Have a good trip on your computer. Thanks 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
Apache cannot load jk2 (bis)
Hello, I use the ${Apache2} in this mail for the path of my apache install directory. 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 IfModule !mod_jk2.c LoadModule jk2_module modules/mod_jk2-1.3.27.dll /IfModule 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. I try by changing the name to mod_jk2.dll (in both, http.conf and file system). I have administration rigths. SSL module is not loaded 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
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 IfModule !mod_jk2.c # LoadModule jk2_module modules/mod_jk2-1.3.27.dll /IfModule 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
RE: Apache cannot load jk2
Hi, I have done before asking, I test one more after your proposal by copiing the dll ... and have same result ! [EMAIL PROTECTED] mailto:[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?xml:namespace prefix = o ns = urn:schemas-microsoft-com:office:office / -Message d'origine- De : Julien Oix [mailto:[EMAIL PROTECTED] Envoyé : jeudi 23 octobre 2003 15:42 À : Tomcat Users List; [EMAIL PROTECTED] Objet : 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 IfModule !mod_jk2.c # LoadModule jk2_module modules/mod_jk2-1.3.27.dll /IfModule 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache cannot load jk2
Oops I have this problem when the comment sign is NOT present. I copy/paste these lines after commenting for continuing a well running Apache ! Apologize for this error in mail, not in configuring [EMAIL PROTECTED] mailto:[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?xml:namespace prefix = o ns = urn:schemas-microsoft-com:office:office / -Message d'origine- De : Dean, Michael D. [mailto:[EMAIL PROTECTED] Envoyé : jeudi 23 octobre 2003 18:00 À : 'Julien Oix' Cc : '[EMAIL PROTECTED]' Objet : RE: Apache cannot load jk2 just a shot, Julien but, if your file config is EXACTLY as shown, your LoadModule directive is commented out... IfModule !mod_jk2.c # LoadModule jk2_module modules/mod_jk2-1.3.27.dll /IfModule Best Regards, Michael Dean Sun Certified Programmer for the Java 2 Platform Washington State Department of Corrections ph: 360-664-8802 fx: 360-664-3985 mailto:[EMAIL PROTECTED] This is the neurotic mystery of climbing stone; Some bit of experience, large air under one's feet Now abides the immutable question, companion forever, Nay Can I?, but WILL I?... - Michael Dean -Original Message- From: Julien Oix [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 6:42 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: 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 IfModule !mod_jk2.c # LoadModule jk2_module modules/mod_jk2-1.3.27.dll /IfModule 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mod_jk on Solaris - has anyone actually ever built it?
Help! I am having trouble building mod_jk.so on Solaris 2.6 - and the binary directory for 2.6 at the jakarta site is empty. Has anyone actually succeeded in getting it built from source? The instructions don't seem to refer to the actual directory layout. Or, failing that, can anyone point me to an ftp site that has the built module? Thanks Max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Html checker from a browser wanted?
http://www.htmlvalidator.com/ has a validator (including a functionality-limited freeware version) that will hook into IE. -Max - Original Message - From: Zsolt Koppany [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, April 03, 2003 11:43 PM Subject: Html checker from a browser wanted? Hi, I used to use the tool quanta-plus under Linux KDE to check my pages from a browser without the need first to save the page and start a utility. A plug-in would be the best that is integrated into Mozilla or Internet Explorer. Can somebody propose me a similar tool under Windows? Zsolt - 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]
mod_jk : worker not found
Hi I attempt to use mod_jk between tomcat 4.1.12 apache 2.0.43 with virtual host but every time i request a .jsp, apache return an internal server error in mod_jk.log we can read : [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (477)]: Attempting to map URI '/jsp/num/numguess.jsp' [jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match vhost1 - *.jsp [mod_jk.c (1277)]: Into handler r-proxyreq=0 r-handler=jakarta-servlet r-notes=135764112 worker=vhost1 [jk_worker.c (132)]: Into wc_get_worker_for_name vhost1 [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker The only host in my server.xml is www.vhost1.com in httpd.conf i have this : IfModule !mod_jk.c LoadModule jk_module /usr/local/apache/modules/mod_jk.so /IfModule JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel warn NameVirtualHost * VirtualHost * ServerName www.vhost1.com DocumentRoot /usr/local/tomcat/webapps/examples Directory / Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory Location /WEB-INF/* AllowOverride None deny from all /Location Location /META-INF/* AllowOverride None deny from all /Location JkMount /*.jsp vhost1 /VirtualHost my worker.properties : workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/local/java ps=/ worker.list=vhost1 worker.vhost1.port=8009 worker.vhost1.host=www.vhost1.com worker.vhost1.type=ajp13 Can you help me ? Tks __
jspc
Hello, I use tomcat 4.1.10 /usr/local/tomcat/bin#./jspc.sh ../webapps/myapp/test.jsp 2002-10-28 03:51:38 - ERROR-the file '/test.jsp' generated the following general exception: java.lang.NullPointerException error:null This error with every jsp ... somebody know another way than jspc to compile all jsp recursivly ? thanks
Re: jspc
i use jstl with jakarta-taglibs with no tld file (in WEB-INF or in jar files) and log tag library with one tld file in WEB-INF/lib/log.jar do you have an idea ? - Original Message - From: peter lin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, October 28, 2002 3:59 PM Subject: Re: jspc if you're using jsp1.1 tag libraries, make sure you only have the tag tld file in either jar or WEB-INF/. if you have it in both, it will cause null pointer errors. peter Max wrote: Hello, I use tomcat 4.1.10 /usr/local/tomcat/bin#./jspc.sh ../webapps/myapp/test.jsp 2002-10-28 03:51:38 - ERROR-the file '/test.jsp' generated the following general exception: java.lang.NullPointerException error:null This error with every jsp ... somebody know another way than jspc to compile all jsp recursivly ? thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: connector and tomcat 4.1.12 !!
Thanks. But i don't understand why tomcat need to get its classpath in apache configuration file and how specifie in tomcat where is this file ... Where can i find documentation on this subject ? there is few documentation on http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2 but very light ... or a book ? - Original Message - From: Robert L Sowders [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, October 24, 2002 7:32 PM Subject: Re: connector and tomcat 4.1.12 !! Looks like you are having problems with your class path. Guess you didn't update the workers2.properties file when you updated to 4.1.12. In the [VM] section of workers2.properties, try replacing the line: OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar with the following OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar;${TOMCAT_HOME}/serve r/lib/commons-logging.jar Not sure but I think at some point the OPT lines will be replaced with simple class path lines. rls Max [EMAIL PROTECTED] 10/24/2002 02:39 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:connector and tomcat 4.1.12 !! Hi I have a tomcat 4.1.12, an apache 2.0.40 and mod_jk2 (tomcat-connectors-4.1.12) since i put this simple jk2.properties in my $CATALINA/conf dir : # handler.list=apr,channelUnix,request channelUnix.file=${jkHome}/work/jk2.socket apr.NativeSo=${jkHome}/lib/libjkjni.so (it works great with a tomcat 4.1.10) tomcat doesn't start and my catalina.out looks like this : Starting service Tomcat-Standalone Apache Tomcat/4.1.12-LE-jdk14 24 oct. 2002 17:26:38 org.apache.jk.server.JkMain newHandler GRAVE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at org.apache.jk.server.JkMain.newHandler(JkMain.java:494) and the socket file is not created . Can you help me ? THANKS ! my server.xml : Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Standalone Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Standalone defaultHost=phobos debug=0 Host name=phobos debug=0 appBase=webapps unpackWARs=true [...] /Host /Engine /Service /Server -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
connector and tomcat 4.1.12 !!
Hi I have a tomcat 4.1.12, an apache 2.0.40 and mod_jk2 (tomcat-connectors-4.1.12) since i put this simple jk2.properties in my $CATALINA/conf dir : # handler.list=apr,channelUnix,request channelUnix.file=${jkHome}/work/jk2.socket apr.NativeSo=${jkHome}/lib/libjkjni.so (it works great with a tomcat 4.1.10) tomcat doesn't start and my catalina.out looks like this : Starting service Tomcat-Standalone Apache Tomcat/4.1.12-LE-jdk14 24 oct. 2002 17:26:38 org.apache.jk.server.JkMain newHandler GRAVE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at org.apache.jk.server.JkMain.newHandler(JkMain.java:494) and the socket file is not created . Can you help me ? THANKS ! my server.xml : Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Standalone Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Standalone defaultHost=phobos debug=0 Host name=phobos debug=0 appBase=webapps unpackWARs=true [...] /Host /Engine /Service /Server
Cache problem
Hi i think i have a newbee problem ... i use Tomcat 4.1.10, Apache 2 and mod_jk2 my browser put jsp file in its cache ... a simple file test.jsp wich contains only : %= new java.util.Date() %br a href=test.jspretry/a every retry give the same date ... what the mistake ? tks
Caching problems
Sorry for hammering, but this is important. I have both tomcat 3 and tomcat 4 installed. I have an application running with a few jsp files. I am trying to make sure the browser does not cache the pages. So I use the following code: response.setHeader(Cache-Control,no-cache); response.setHeader(Pragma,no-cache); response.setDateHeader(Expires,-1); When I run this under tomcat 3, these lines have no effect and pages are cached in the browser. When I run this under tomcat 4, these pages are not cached and forces the user to reload. The problem is that the environment in which this app will be running is running tomcat 3. Is this a feature or a bug? Any reasons why this is happening ? Is there any way to make it work? Thank You Max -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Caching
I have both tomcat 3 and tomcat 4 installed. I have an application running with a few jsp files. I am trying to make sure the browser does not cache the pages. So I use the following code: response.setHeader(Cache-Control,no-cache); response.setHeader(Pragma,no-cache); response.setDateHeader(Expires,-1); When I run this under tomcat 3, these lines have no effect and pages are cached in the browser. When I run this under tomcat 4, these pages are not cached and forces the user to reload. The problem is that the environment in which this app will be running is running tomcat 3. Is this a feature or a bug? Any reasons why this is happening ? Is there any way to make it work? Thank You Max -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Caching problems
I have both tomcat 3 and tomcat 4 installed. I have an application running with a few jsp files. I am trying to make sure the browser does not cache the pages. So I use the following code: response.setHeader(Cache-Control,no-cache); response.setHeader(Pragma,no-cache); response.setDateHeader(Expires,-1); When I run this under tomcat 3, these lines have no effect and pages are cached in the browser. When I run this under tomcat 4, these pages are not cached and forces the user to reload. The problem is that the environment in which this app will be running is running tomcat 3. Is this a feature or a bug? Any reasons why this is happening ? Is there any way to make it work? Thank You Max -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Caching
I have both tomcat 3 and tomcat 4 installed. I have an application running with a few jsp files. I am trying to make sure the browser does not cache the pages. So I use the following code: response.setHeader(Cache-Control,no-cache); response.setHeader(Pragma,no-cache); response.setDateHeader(Expires,-1); When I run this under tomcat 3, these lines have no effect and pages are cached in the browser. When I run this under tomcat 4, these pages are not cached and forces the user to reload. The problem is that the environment in which this app will be running is running tomcat 3. Is this a feature or a bug? Any reasons why this is happening ? Is there any way to make it work? Thank You Max -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
reading content in WEB-INF
This is what is written in the docs: web/WEB-INF/ - The special configuration files required for your application, including the web application deployment descriptor (web.xml), tag library descriptors for custom tag libraries you have created, and other resource files you wish to include within your web application. Even though this directory appears to be a subdirectory of your document root, the Servlet Specification prohibits serving the contents of this directory (or any file it contains) directly to a client request. Therefore, this is a good place to store configuration information that is sensitive (such as database connection usernames and passwords), but is required for your application to operate successfully. I am storing a file in the WEB-INF directory and I need to access it with a servlet, how would I get to it? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
reading content in WEB-INF
I am using Tomcat 4.0.2. I have a file in the WEB-INF directory and I need to access it with a servlet, how can I do that? This is what is written in the docs: web/WEB-INF/ - The special configuration files required for your application, including the web application deployment descriptor (web.xml), tag library descriptors for custom tag libraries you have created, and other resource files you wish to include within your web application. Even though this directory appears to be a subdirectory of your document root, the Servlet Specification prohibits serving the contents of this directory (or any file it contains) directly to a client request. Therefore, this is a good place to store configuration information that is sensitive (such as database connection usernames and passwords), but is required for your application to operate successfully. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Recognising updated servlet class files
Hi Nic, at first make sure that your servlet class has really been reloaded. I had similar problems (and sometimes still have when using the back/forward/refresh button), the browser did not really reload the servlet. Now I use the following commands in my servlets. res.setContentType(text/html); res.setHeader(Pragma,no-cache); // pragma to no-cache, similar use a meta Tag with pragma=no-cache res.setHeader(Expires,-1); // -1 (or 0... not sure about this) lets the webpage be expired, the broser should // look for a newer version of the webpage now res.setHeader(Cache-Control,no-cache); // tells the browser not to cache this page PrintWriter out = res.getWriter(); Unfortunatly this does not always work out well, especially when the backbutton is used. Netcscape is more correct in this case... If you are interested in having a closer look on what data is submitted, use the TCPTunnelGUI. Its availible at http://xml.apache.org/soap/index.html in soap-bin-2.2.zip Quite a usefull tool. Best regards, Max Wippert -Original Message- From: Hammonds Nicholas [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 7. Februar 2002 12:10 To: 'Tomcat Users List' Subject: Recognising updated servlet class files Hello there, I am running Tomcat 4.0. I have a problem at the moment in that when I update a servlet class file the only way I can get the browser to display the updated version is to shutdown and restart tomcat. I am using Internet Explorer 5.50. I have tried holding down the ctrl and also the shift key whilst clicking on the refresh button in the browser as I understand that should force IE to look for an updated version. Have any of you experienced similar problems and if so how did you resolve them. Cheers Nic -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 3.3 and 4.0, different behaviour when reloading the web.xml
Hello everyone. I'm new to this mailing List, and hopefully I don't bother anyone asking questions which have already been answered. I'm using Tomcat 4.0 standalone on Win2K and Tomcat 3.3 on MPE. I use Tomcat to run JavaServlets. On MPE (it includes an Posix-Shell, behaves similar to Unix), when change the web.xml in the Folder WEB-INF Tomcat 3.3 notices this, destroys every Servlet mentioned in the web.xml and if the Servlet gets accessed again ist is reloaded. Same happens if I only touch the web.xml. This is visible becaus of some logging I coded in the init() and the destroy() of the Servlets. When do the same on my Win3K machine Tomcat 4.0 does NOT reload the web.xml. He does not destroy the classes neither. Has anyone an Idea how I can tell Tomcat4.0 to reload the web.xml? I want him to read out the up-to-date Information I wrote into the web.xml. ...snip... context-param param-nameMyParameter/param-name param-valueUseThisParameterValue/param-value /context-param ...snip... Best regards, thank you, Max Wippert -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3 and 4.0, different behaviour when reloading the web.xml
Hi Remy, thanx for you answer. Using the Manager App with startstop or with reload reloads my Servlet, destroy() and init() are processed. Unfortunatly this does NOT force TC4.0 to reload the web.xml. I think I will have a look at the nighly build... Regards, Max -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 6. Februar 2002 15:41 To: Tomcat Users List Subject: Re: Tomcat 3.3 and 4.0, different behaviour when reloading the web.xml Hello everyone. I'm new to this mailing List, and hopefully I don't bother anyone asking questions which have already been answered. I'm using Tomcat 4.0 standalone on Win2K and Tomcat 3.3 on MPE. I use Tomcat to run JavaServlets. On MPE (it includes an Posix-Shell, behaves similar to Unix), when change the web.xml in the Folder WEB-INF Tomcat 3.3 notices this, destroys every Servlet mentioned in the web.xml and if the Servlet gets accessed again ist is reloaded. Same happens if I only touch the web.xml. This is visible becaus of some logging I coded in the init() and the destroy() of the Servlets. When do the same on my Win3K machine Tomcat 4.0 does NOT reload the web.xml. He does not destroy the classes neither. Has anyone an Idea how I can tell Tomcat4.0 to reload the web.xml? I want him to read out the up-to-date Information I wrote into the web.xml. ...snip... context-param param-nameMyParameter/param-name param-valueUseThisParameterValue/param-value /context-param ...snip... Either: - Use the manager webapp (do a stop followed by a start) - Use a nightly build (4.0-HEAD includes automatic deployment and web.xml tracking) Remy -- 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]
Re: BindException...
hi, I also had same problem before. you may try to change Apache-Connector Service port from 8008 to any other number. max - Original Message - From: Svante Berglund [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 4:25 PM Subject: SV: BindException... Hi. Nope, no other server is running and I´ve tried several different ports. Also, tomcat IS able to serve .html-pages, but not able to compile .jsp-pages. Thanks for answering! Svante -Ursprungligt meddelande- Från: G.Nagarajan [mailto:[EMAIL PROTECTED]] Skickat: den 21 september 2001 10:22 Till: [EMAIL PROTECTED] Ämne: RE: BindException... Hi, If you are running NT, check if IIS is running. If windows 95x is running, check if Personal web server is running. Or change the http port to something like in server.xml and restart tomcat. If tomcat runs, then it means that some other server is running. Regards, Nagarajan. -Original Message- From: Svante Berglund [mailto:[EMAIL PROTECTED]] Sent: Friday, September 21, 2001 10:13 AM To: [EMAIL PROTECTED] Subject: BindException... Hi all. I recive an error message at startup from tomcat 3.2.3(see below). After that tomcat is only able to process .html-pages but fails to compile .jsp-pages. Do you have any clues why? No other server is running on the machine. /cheers Svante FATAL:java.net.BindException: Address in use: JVM_Bind java.net.BindException: Address in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405) at java.net.ServerSocket.init(ServerSocket.java:170) at java.net.ServerSocket.init(ServerSocket.java:121) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default ServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi nt.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav a:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) D:\tomcat\bin
Re: OutOfMemory - Set Java Heap Size?
Thanks Craig. I'm trying to work out just what I should be doing. 'Fraid I'm rather a novice here. I've used the top command to see what memory is being used (see output below), but I'm not sure what to make of it. I can certainly start the 7th tomcat session on its own, if I don't start the others first, so tomcat settings are ok, I guess. If I understand things correctly, each instance of Tomcat starts its own JVM. The amount of memory each JVM then uses is governed by the starting memory (eg -Xms64m) and then it consumes as little memory as possible [from Sun site] until, presumably, it reaches the maximum allowable memory, eg -Xmx256m. The applications I am running are very small, and I don't imagine that they would need a great deal of memory at all. The cpu is idle about 80% most of the time. Does it therefore make sense to use smaller starting memories for the JVMs, such as -Xms32m? If I'm allowing up to 256m maximum, is that across all JVMs, or for each one? Does that mean I can then open 256 / 32 = 8 instances??? Sorry I'm asking so many dumb questions, but I'm having trouble finding the right sort of info on this subject, most of it seems geared towards big applications, and I think I really need to master this, before I rush out and buy another server to run only 6 more tiny applications! Thanks, Max Hugen The console output of the top command 9:42am up 1 day, 14:17, 1 user, load average: 0.15, 0.06, 0.01 271 processes: 270 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 2.9% user, 16.3% system, 0.0% nice, 80.6% idle Mem: 517188K av, 509160K used, 8028K free, 193344K shrd, 75172K buff Swap: 131536K av, 0K used, 131536K free123504K cached PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND 30036 admin 15 0 1228 1228 880 R 0 17.1 0.2 0:19 top 2385 root 1 0 28144 27M 2516 S 48 1.4 5.4 0:01 java 2347 root 0 0 28144 27M 2516 S 48 0.3 5.4 0:03 java 16308 httpd 0 0 6456 6456 6032 S 0 0.1 1.2 0:00 httpd 1 root 0 0 120 12048 S 0 0.0 0.0 0:04 init 2 root 0 0 00 0 SW 0 0.0 0.0 0:00 kflushd 3 root 0 0 00 0 SW 0 0.0 0.0 0:00 kupdate 4 root 0 0 00 0 SW 0 0.0 0.0 0:00 kpiod 5 root 0 0 00 0 SW 0 0.0 0.0 0:00 kswapd 6 root -20 -20 00 0 SW 0 0.0 0.0 0:00 mdrecoveryd 89 root 0 0 300 300 208 S 0 0.0 0.0 0:02 syslogd 98 root 0 0 416 416 0 S 0 0.0 0.0 0:00 klogd 649 root 0 0 152 15268 S 0 0.0 0.0 0:00 crond 661 root 0 0 108 10836 S 0 0.0 0.0 0:00 inetd 670 root 0 0 160 160 0 S 0 0.0 0.0 0:00 nlservd 678 root 0 0 3232 3232 2200 S 0 0.0 0.6 0:00 httpd 713 postgres 0 0 664 664 272 S 0 0.0 0.1 0:01 postmaster end - Original Message - From: Craig R. McClanahan To: Tomcat Users List ; Max Hugen Sent: Tuesday, August 28, 2001 1:20 AM Subject: Re: OutOfMemory - Set Java Heap Size? On Mon, 27 Aug 2001, Max Hugen wrote: Unfortunately, I still cannot launch a 7th Tomcat process, and I don't understand why not. I feel I'm missing something, but I just can't figure it out. 6 works, but adding a seventh raises the OutOfMemoryError. Well, have you checked your OS's memory and swap settings yet? Because each JVM uses its own completely separate heap space, it's quite easy to run out of either physical memory or swap space -- once that happens, it doesn't matter how big you set Java's heap size to be, because the OS won't be able to satisfy it anyway. A quick way to check the settings in your 7th setup is to start that one *alone* on the machine. If that works, then there's nothing wrong with your Tomcat settings. If it's really an OS/memory you'll probably have this problem with *whichever* JVM you try to start last. Craig
Re: OutOfMemoryError - The Real Problem?
I've been plugging along with this problem, and I think that the issue is with the maximum number of threads set by default in Apache - 256. I monitored the number of processes running during a reboot and found as follows: ProcessesStarted | Total On reboot 37 37 Start Oracle Db 1 18 55 Start Oracle Db 2 14 69 Start Tomcat App 1 41110 Start Tomcat App 2 35145 Start Tomcat App 3 36181 Start Tomcat App 4 37218 Start Tomcat App 5 36254 Well, at 254, and only 256, I can see why it was crashing out. The OutOfMemoryError seems a bit of a poor message - the important issue here seems that I've run out of available processes. And of course, the above with 5 tomcat engines running, its going to crash as soon as Oracle gets requests and spawns more processes. I'm a bit surprised that Tomcat needs so many processes per instance, and also that the Linux/Apache config is brought to its knees if you hit the maximum number of processes? Does anyone who runs a number of Internet applications using JSP have any suggestions here? Seems crazy that I can only run about 4 (tiny) apps on a server with 512Mb of memory and heaps of hard drive space! Next step, I guess, is to look into recompiling Apache with a higher number of processes specified. Not much fun for a rookie, especially when some applications are already in service. Aaarrggh! Any and all suggestions gratefully devoured! Max Hugen
Re: OutOfMemory - Set Java Heap Size?
Many thanks, Craig, Aravind and Shaun, for your comments. They are most appreciated. I set the TOMCAT_OPTS to -server -Xms64m -Xmx192m as you suggested Shaun... I wasn't aware of the HotSpot application, I'm now reading up in it. Thanks for the tip. Unfortunately, I still cannot launch a 7th Tomcat process, and I don't understand why not. I feel I'm missing something, but I just can't figure it out. 6 works, but adding a seventh raises the OutOfMemoryError. It does appear from the console output that Tomcat fails when it tries to start a PoolTCPConnector. I start two connectors for each application (ie, Tomcat process), one is an Ajp13ConnectionHandler, the second an Ajp12ConnectionHandler which I understand is required for Tomcat to be closed down. I've included one of my server.xml files below, just in case there is a glaring error in there. There's an xml for each application, they are all the same except for the different ports I've assigned, and the log and work file names etc. Any further suggestions would be most appreciated, I'm have a minor heart attack at thought of having to buy one server for every 6 small jsp applications I want to run! Thanks, Max Hugen ?xml version=1.0 encoding=ISO-8859-1? Server !-- Debug low-level events in XmlMapper startup -- xmlmapper:debug level=0 / Logger name=tc_log path=logs/isp_tomcat.log verbosityLevel = INFORMATION / Logger name=servlet_log path=logs/isp_servlet.log verbosityLevel = INFORMATION / Logger name=JASPER_LOG path=logs/isp_jasper.log verbosityLevel = INFORMATION / ContextManager debug=0 workDir=work_isp showDebugInfo=true !-- Interceptors -- !-- ContextInterceptor className=org.apache.tomcat.context.LogEvents -- ContextInterceptor className=org.apache.tomcat.context.AutoSetup / ContextInterceptor className=org.apache.tomcat.context.WebXmlReader / !-- Uncomment out if you have JDK1.2 and want to use policy ContextInterceptor className=org.apache.tomcat.context.PolicyInterceptor / -- ContextInterceptor className=org.apache.tomcat.context.LoaderInterceptor / ContextInterceptor className=org.apache.tomcat.context.DefaultCMSetter / ContextInterceptor className=org.apache.tomcat.context.WorkDirInterceptor / !-- Request processing -- RequestInterceptor className=org.apache.tomcat.request.SessionInterceptor noCookies=false / !-- Find the container ( context and prefix/extension map ) for a request. -- RequestInterceptor className=org.apache.tomcat.request.SimpleMapper1 debug=0 / !-- Non-standard invoker, for backward compat. ( /servlet/* ) -- RequestInterceptor className=org.apache.tomcat.request.InvokerInterceptor prefix=/servlet/ debug=0 / !-- default handler - static files and dirs. -- RequestInterceptor className=org.apache.tomcat.request.StaticInterceptor debug=0 suppress=false / !-- Plug a session manager. You can plug in more advanced session modules. -- RequestInterceptor className=org.apache.tomcat.session.StandardSessionInterceptor / !-- Check if the request requires an authenticated role. -- RequestInterceptor className=org.apache.tomcat.request.AccessInterceptor debug=0 / !-- Check permissions using the simple xml file. You can plug more advanced authentication modules. -- RequestInterceptor className=org.apache.tomcat.request.SimpleRealm debug=0 / !-- Loaded last since JSP's that load-on-startup use request handling -- ContextInterceptor className=org.apache.tomcat.context.LoadOnStartupInterceptor / !-- Connectors -- Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/ Parameter name=port value=8104/ /Connector Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp12ConnectionHandler/ Parameter name=port value=8204/ /Connector Context path= docBase=/home/sites/site4/web/det-isp debug=0 reloadable=true trusted=false /Context /ContextManager /Server
OutOfMemory - Set Java Heap Size?
I run Linux/Apache/Tomcat plus Oracle on a server with 512Mb of memory. I have successfully implemented a couple of Internet applications using JSP, Servlets (plus Oracle) etc. For each application (and client) I start a new Tomcat session, using a custom server.xml for each one. All was ok, until I tried increasing Tomcat sessions from 6 to 7, then I received the java.lang.OutOfMemoryError when starting the Tomcat sessions. I've read through many of the posts on this subject, some of which suggest to increase the heap size. Unfortunately, I'm a newbie to Java (and Linux and JSP and Oracle g) so I don't know how to either check this heap size, nor how to permanently set it to a value via a script using a switch like -Xms256m. The script I use to start Tomcat follows, plus the console output. Could anyone advise how to set the heap please? Many thanks, Max Hugen [EMAIL PROTECTED] Hugen Enterprises Pty Ltd, Sydney, Australia www.hugen.com.au Internet Application Developers Script Start echo Tomcat Startup ~ echo Start an instance of Tomcat for hugen /usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_he.xml echo Start an instance of Tomcat for yass3i /usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_yass3i.xml echo Start an instance of Tomcat for isp /usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_isp.xml echo Start an instance of Tomcat for im2000i /usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_im2000i.xml echo Start an instance of Tomcat for secure /usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_secure.xml echo Start an instance of Tomcat for aedo /usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_aedo.xml echo Start an instance of Tomcat for ncap /usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_ncap.xml # Give Tomcat time to start before restarting Apache. echo Waiting 45 secs... sleep 45 # Restart Apache to register Tomcat properly. echo Restart Apache /etc/rc.d/init.d/httpd stop /etc/rc.d/init.d/httpd start sleep 2 echo Ok, we should be in business! Script End Console Output Start Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat. Check logs/tomcat.log for error messages Restart Apache Exception in thread main java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.ThreadPool$ControlRunnable.init(ThreadPool.java:465 ) at org.apache.tomcat.util.ThreadPool.openThreads(ThreadPool.java:360) at org.apache.tomcat.util.ThreadPool.start(ThreadPool.java:148) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java :245) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.ThreadPool$MonitorRunnable.init(ThreadPool.java:382 ) at org.apache.tomcat.util.ThreadPool.start(ThreadPool.java:149) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java :245) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Shutting down Web Service: httpd /etc/rc.d/init.d/httpd: fork: Resource temporarily unavailable Web Service: /usr/sbin/httpd Console Output End
Ports for Workers
Could anyone advise me (or point to a resource) on the ports that are available for use by Tomcat workers in the workers.properties file? We start a number of Tomcat instances, one for each web application we run on our server. We are currently using ports: 8007 8009 8011 8013 8103 We run Tomcat 3.2.1 and Apache 1.3.6 on Linux 2.2.16. We use mod_jk with ajp13 connectors. Unfortunately, I really don't know why we use the ports we do, and which I should or shouldn't use. Any advice most welcome by this newbie! MTIA, Max Hugen
Workers Problem Resolution
We've been having some very frustrating times with an error which several others have reported in this mailing list: "No such file or directory: Error while opening the workers" During our investigation of the problem, we checked the httpd log "error" and the mod_jk log "mod_jk.log" each time we restarted Tomcat and Apache. We have 2 IP addresses, and a number of virtual hosts. We found that if we commented out all the workers except the 'default' one on port 8007, it resumed working. As soon as the other workers were reinstated, it failed again. We tried changing ports on workers which were failing. It would appear to work once, then resumed failure on second and subsequent restarts. What finally appeared to work was to change the host from name-based (eg www.myDomain.com) to the IP address (eg 203.123.456.789). Although so far this is working, we have no explanation of why. We also don't know how it was, that our workers.properties file worked for weeks without a problem, and then inexplicably failed. Its left us apprehensive, and if anyone can shed some further light on this, it would be most appreciated. Max Hugen [EMAIL PROTECTED] Hugen Enterprises Pty Ltd 207 Flood St, Leichhardt NSW 2040, Australia Tel: 02 9560 3061 www.hugen.com.au
apxs - No Shared Object Support for Apache
We are trying to upgrade from jserv_mod to jk_mod, so that we can get SSL to work with our jsp pages. We tried to run apxs as per Gal Shachor's notes at jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html, but got message: cd /usr/local/src/jakarta-tomcat-3.2.1-src/src/native/apache1.3/usr/sbin/ apxs -o mod_jk.so -I../jk -I/usr/jdk1.3/include -I/usr/jdk1.3/include/linux -c *.c ../jk/*.c apxs:Warning: No shared object support for Apache apxs:Warning: available under your platform. Make sure apxs:Warning: the Apache module mod_so is compiled into apxs:Warning: your server binary `/usr/bin/httpd'. apsx:Warning: Continuing anyway... ... ... lots of stuff, including plenty of ... "No such file or directory" errors ... apxs:Break: Command failed with rc=65536 Can anyone suggest what this problem is? Do I have to recompile Apache for some reason (and if so, how)? As I'm floundering here for days already I would really appreciate any and all suggestions! MTIA, Max Hugen
Re: apxs - No Shared Object Support for Apache
Gosh, missed that, didn't I? Sorry me heap clumsy beginner!, the platform is: Linux Kernel2.2.14 Apache1.3.16but I'm not 100% sure as I don't know how to get the version8~( Tomcat3.2 again, don't know minor version if any. My head is swimming after looking up dso, compile, configure, apache, tomcat, ssl, jk, jserv, but I'll check out the updated mod_jk-howto you suggested. It does seem to look as though my apache executable was compiled without mod_so. This is running on a Cobalt RaQ3i server, which had apache preloaded. Thanks, Max hugen - Original Message - From: Mike Braden To: [EMAIL PROTECTED] ; Max Hugen Sent: Wednesday, March 21, 2001 1:09 PM Subject: RE: apxs - No Shared Object Support for Apache It would help to know the version of TC you have and the platform you are running it on - version, etc. The apache version would help also. You may want to look at the TC3.3m2 release. There is an updated mod_jk-howto in it. If you are running Linux, you can get the pre-built version of mod_jk in the same location as the TC3.3m1 or m2 binaries. The version of mod_jk is not dependant on the version of TC3. Also, sounds like your apache wasn't built with DSO support. The latest how-to offers suggestions with that. If you're still having problems, post some more detail on your config. Mike. -- Mike Braden [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: Max Hugen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 5:34 PM To: Tomcat Users List Subject: apxs - No Shared Object Support for Apache We are trying to upgrade from jserv_mod to jk_mod, so that we can get SSL to work with our jsp pages. We tried to run apxs as per Gal Shachor's notes at jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html, but got message: cd /usr/local/src/jakarta-tomcat-3.2.1-src/src/native/apache1.3/usr/sbin/ apxs -o mod_jk.so -I../jk -I/usr/jdk1.3/include -I/usr/jdk1.3/include/linux -c *.c ../jk/*.c apxs:Warning: No shared object support for Apache apxs:Warning: available under your platform. Make sure apxs:Warning: the Apache module mod_so is compiled into apxs:Warning: your server binary `/usr/bin/httpd'. apsx:Warning: Continuing anyway... ... ... lots of stuff, including plenty of ... "No such file or directory" errors ... apxs:Break: Command failed with rc=65536 Can anyone suggest what this problem is? Do I have to recompile Apache for some reason (and if so, how)? As I'm floundering here for days already I would really appreciate any and all suggestions! MTIA, Max Hugen
Re: apxs - No Shared Object Support for Apache
Gosh, missed that, didn't I? Sorry me heap clumsy beginner!, the platform is: Linux Kernel2.2.14 Apache1.3.16but I'm not 100% sure as I don't know how to get the version8~( Tomcat3.2 again, don't know minor version if any. My head is swimming after looking up dso, compile, configure, apache, tomcat, ssl, jk, jserv, but I'll check out the updated mod_jk-howto you suggested. It does seem to look as though my apache executable was compiled without mod_so. This is running on a Cobalt RaQ3i server, which had apache preloaded. Thanks, Max hugen - Original Message - From: Mike Braden To: [EMAIL PROTECTED] ; Max Hugen Sent: Wednesday, March 21, 2001 1:09 PM Subject: RE: apxs - No Shared Object Support for Apache It would help to know the version of TC you have and the platform you are running it on - version, etc. The apache version would help also. You may want to look at the TC3.3m2 release. There is an updated mod_jk-howto in it. If you are running Linux, you can get the pre-built version of mod_jk in the same location as the TC3.3m1 or m2 binaries. The version of mod_jk is not dependant on the version of TC3. Also, sounds like your apache wasn't built with DSO support. The latest how-to offers suggestions with that. If you're still having problems, post some more detail on your config. Mike. -- Mike Braden [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: Max Hugen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 5:34 PM To: Tomcat Users List Subject: apxs - No Shared Object Support for Apache We are trying to upgrade from jserv_mod to jk_mod, so that we can get SSL to work with our jsp pages. We tried to run apxs as per Gal Shachor's notes at jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html, but got message: cd /usr/local/src/jakarta-tomcat-3.2.1-src/src/native/apache1.3/usr/sbin/ apxs -o mod_jk.so -I../jk -I/usr/jdk1.3/include -I/usr/jdk1.3/include/linux -c *.c ../jk/*.c apxs:Warning: No shared object support for Apache apxs:Warning: available under your platform. Make sure apxs:Warning: the Apache module mod_so is compiled into apxs:Warning: your server binary `/usr/bin/httpd'. apsx:Warning: Continuing anyway... ... ... lots of stuff, including plenty of ... "No such file or directory" errors ... apxs:Break: Command failed with rc=65536 Can anyone suggest what this problem is? Do I have to recompile Apache for some reason (and if so, how)? As I'm floundering here for days already I would really appreciate any and all suggestions! MTIA, Max Hugen
mod_jserv vs. mod_jk (configuration questions for workers.properties)
I have been browsing through the documentation and have hit a wall. I want to run Apache and Tomcat on separate machines. More than that I want to load balance my Tomcat application servers. I have done this in the past using mod_jserv to talk to jserv servers and it worked pretty well. From what I have gathered I want to use mod_jk with ajp v1.3. I understand everything in the mod_jk.conf-auto and the workers.properties except... the workers.properties file defines tomcat specific variables (i.e. workers.tomcat_home, workers.java_home, classpaths etc...). How can I define tomcat internals from an apache machine that doesn't have tomcat installed? What do I need to define within the workers.properties to have my apache machines connect to the tomcat machines. Do I have to install tomcat on all of the machines? What about a jdk? Has anybody done this? Can somebody help me with this config? Thanks in advance, -Max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jserv vs. mod_jk (configuration questions for workers.pro pert ies)
Title: RE: mod_jserv vs. mod_jk (configuration questions for workers.propert ies) Wait... So you copied the workers.properties file from the tomcat machine and put it onto the apache servers. The apache servers have the mod_jk, no java, no tomcat and everything works? So even though the workers.properties file has classpaths and everything else the proxy connection works. Thanks, mc -Original Message-From: Michael Kuz [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 10, 2001 12:34 PMTo: '[EMAIL PROTECTED]'Subject: RE: mod_jserv vs. mod_jk (configuration questions for workers.pro pert ies) Hey Max, We've (almost) got the same setup: Multiple Apache boxes (LVSed) and multiple Tomcat boxes in a load balanced setup (via mod_jk) All of out Tomcat boxes are identical, so we set the 'home' type attributes of the worker.properties file to where they are on the _Tomcat_ machines. Our Apache boxes just have Apache on them (no jdk etc) It seems to be working fine.. Hope that helped. mk Michael R. Kuz Developer Service Intelligence (403) 261-5000 ext. 363 [EMAIL PROTECTED] -Original Message- From: Max Clark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 12:50 PM To: '[EMAIL PROTECTED]' Subject: mod_jserv vs. mod_jk (configuration questions for workers.propert ies)I have been browsing through the documentation and have hit a wall. I want to run Apache and Tomcat on separate machines. More than that I want to load balance my Tomcat application servers. I have done this in the past using mod_jserv to talk to jserv servers and it worked pretty well. From what I have gathered I want to use mod_jk with ajp v1.3. I understand everything in the mod_jk.conf-auto and the workers.properties except... the workers.properties file defines tomcat specific variables (i.e. workers.tomcat_home, workers.java_home, classpaths etc...). How can I define tomcat internals from an apache machine that doesn't have tomcat installed? What do I need to define within the workers.properties to have my apache machines connect to the tomcat machines. Do I have to install tomcat on all of the machines? What about a jdk? Has anybody done this? Can somebody help me with this config? Thanks in advance, -Max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
manage tomcat via Web
Hi all! Does anybody know is there any way to manage tomcat via Web ? Like Jrun for example ? Thank you! -- Best regards, Max mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Tomcat milestone 5
Thanks Craig, I missed those lines in server.xml I will give it a try. The release notes said that it was not stable yet. What's your experience ? Max - Original Message - From: "craig mcclanahan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 4:49 PM Subject: Re: Tomcat milestone 5 Max Bardetti wrote: Hi Has anybody successfully installed 4.0 M5 with the apache 1.3 connector working ? I tried for few hours but I could not make it work, I followed the limited instructions in the release notes with no success. I recompiled the apache module included and configured server.xml, is tomcat.conf still needed ? What about httpd.conf do I need to point it to tomcat.conf ? Thanks Max What kind of error messages do you get? The only commands needed in httpd.conf are those briefly described in the server.xml file -- something like this: LoadModule webapp_module libexec/mod_webapp.so WebAppConnection warpConnection warp localhost:8008 -- Wherever TC4 is listening WebAppMount examples warpConnection /examples/-- Repeat per webapp All the other detailed stuff that used to be configured in tomcat-apache.conf is no longer needed -- the connector configures itself from the web.xml settings of each app. Craig McClanahan ** E-Mail processed at inet.ann.com with MAILsweeper **