Help setting jforum and Apache-Tomcat connector
Hello all, I have a problem while I am trying to run jforum and connect apache-tomcat with mod_jk connector. When I am typing http://localhost:8080/jforum - everything is just fine. But I want to access the forum with forum.mycompany.com. Before explain my conf files I will say that I am using Suse Linux Enterprise Server. I have put jforum in /srv/www/tomcat5/base/webapps. I have a virtual host defined in my apache and it looks like this: VirtualHost 10.0.11.51:80 ServerAdmin webmas...@mycompany.com ServerName forum.mycompany.com:8080 ServerAlias forum.mycompany.com ErrorLog /var/log/apache2/forum.mycompany.com-error_log CustomLog /var/log/apache2/forum.mycompany.com-access_log combined HostnameLookups Off UseCanonicalName Off JkMount /jforum/* ajp13 /VirtualHost My jk.conf file is this: IfModule mod_jk.c JkWorkersFile /etc/tomcat5/base/workers.properties JkLogFile /var/log/tomcat5/base/mod_jk.log # Log level to be used by mod_jk JkLogLevel error # The following line makes apache aware of the location of # the /jforum context Alias /jforum /srv/www/tomcat5/base/webapps/jforum Directory /srv/www/tomcat5/base/webapps/jforum Options Indexes FollowSymLinks allow from all /Directory # The following line makes apache aware of the location of # the /servlets-examples context Alias /servlets-examples /srv/www/tomcat5/base/webapps/servlets-examples Directory /srv/www/tomcat5/base/webapps/servlets-examples Options Indexes FollowSymLinks allow from all /Directory # The following line makes apache aware of the location of # the /jsp-examples context Alias /jsp-examples /srv/www/tomcat5/base/webapps/jsp-examples Directory /srv/www/tomcat5/base/webapps/jsp-examples Options Indexes FollowSymLinks allow from all /Directory # The following line mounts all JSP files and the /servlet/ uri to tomcat JkMount /servlets-examples/servlet/* ajp13 JkMount /jsp-examples/*.jsp ajp13 # The following line prohibits users from directly accessing WEB-INF Location /jsp-examples/WEB-INF/ AllowOverride None deny from all /Location Location /servlets-examples/WEB-INF/ AllowOverride None deny from all /Location /IfModule In my workers.properties file I have pointed the Tomcat base directory and JAVA home directory. I have a DNS and I have set it so forum.mycompany.com i going to the apache server. When i access forum.mycompany.com it came up a blank page with IT WORKS line. I have read a lot tutorials about connecting apache and tomcat but I have no success. Can you tell me what I am missing. Thank you in advance. -- View this message in context: http://www.nabble.com/Help-setting-jforum-and-Apache-%3ETomcat-connector-tp22777158p22777158.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SEVERE: Null component Catalina:type=DataSource
Hi Alexandr, this may not solve your problem but could help to identify it, please do the following: - shutdown tomcat - remove any previously created youApplicationName.xml file in the $CATALINA_HOME/conf/Catalina/localhost/youApplicationName.xml it seems to me that when tomcat starts it does find an old instance there see the log: ( INFO: The listener org.springframework.web.context.ContextLoaderListener is already configured for this context. The duplicate definition has been ignored. ) and in addition to that, tomcat does not logs the information that it starts deploying yourApplicationName.xml - remove the $CATALINA_HOME/work/localhost/yourApplicationName directory. - package /war your application - start tomcat and let it cleanly starts until it says that the start up is success full - deploy your yourApplicationName.war into the webapps directory - send the logs again good luck! On Mon, Mar 30, 2009 at 6:22 AM, Alexandr Khlystov allex.khlys...@gmail.com wrote: *META-INF/context.xml*: ?xml version='1.0' encoding='utf-8'? Context WatchedResourceWEB-INF/web.xml/WatchedResource Resource name=jdbc/isDS auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@172.16.4.4:1523:kiptest username=test password=test maxActive=20 maxIdle=10 maxWait=-1 / Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=root password=root driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/mysql?autoReconnect=true / /Context *WEB-INF/web.xml, modified a bit to hide private data:* ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app id=WebAppUM resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/isDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref context-param param-namecontextConfigLocation/param-name param-value /WEB-INF/applicationContext-security.xml /WEB-INF/schedulers-context.xml /param-value /context-param context-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/classes/log4j.properties/param-value /context-param filter filter-namespringSecurityFilterChain/filter-name filter-classorg.springframework.web.filter.DelegatingFilterProxy/filter-class /filter filter-mapping filter-namespringSecurityFilterChain/filter-name url-pattern/*/url-pattern /filter-mapping listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener listener listener-classorg.springframework.web.util.Log4jConfigListener/listener-class /listener listener listener-classorg.springframework.security.ui.session.HttpSessionEventPublisher/listener-class /listener servlet id=com.company.application servlet-namecom.company.application/servlet-name servlet-classorg.springframework.web.servlet.DispatcherServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-namecom.company.application/servlet-name url-pattern*.form/url-pattern /servlet-mapping /web-app *catalina.2009-03-30.log:* Mar 30, 2009 11:09:11 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;E:\WINDOWS\Sun\Java\bin;E:\WINDOWS\system32;E:\WINDOWS;E:\Program Files\Windows Resource Kits\Tools\;E:\Program Files\PHP\;F:\home3\bin;F:\OraHome_1\bin;E:\WINDOWS\system32;E:\WINDOWS;E:\WINDOWS\System32\Wbem;E:\Program Files\Intel\DMIX;E:\Program Files\Diskeeper Corporation\Diskeeper\;E:\Program Files\7-Zip;E:\Program Files\WinRAR; Mar 30, 2009 11:09:11 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-9080 Mar 30, 2009 11:09:11 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 274 ms Mar 30, 2009 11:09:11 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 30, 2009 11:09:11 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 Mar 30, 2009 11:09:12 AM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener
virtual hosts
Hi, I would like to know if it is possible to let tomcat redirect ANY url ending with for example test.example.com to a certain webapp. Thanks in advance! -Bart Ophelders
Re: virtual hosts
Bart Ophelders wrote: Hi, I would like to know if it is possible to let tomcat redirect ANY url ending with for example test.example.com to a certain webapp. It's not clear what you mean. URLs normally *start* with a domain, rather than end with it. If you mean can I assign *.domain.com to a specific webapp, the answer is yes - by defining the default host for a service. Perhaps you can elaborate? p P.S. Java version, Tomcast version, OS etc? Thanks in advance! -Bart Ophelders - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: virtual hosts
Bart Ophelders wrote: Thanks for the quick response! Isn't it possible to do something like this: host name=*.test.example.com appBase=webapps/ Not quite like that. Engine defaultHost=test.example.com Host name=test.example.com ... /Engine Will result in all traffic that arrives at IPs specified in your Connectors, but that does not conform to another Host/Alias definition being delivered to the webapps of the defaultHost. p -Bart Ophelders Date: Mon, 30 Mar 2009 12:36:09 +0200 Subject: Re: virtual hosts From: elas...@users.sourceforge.net To: users@tomcat.apache.org Hi, i hope i undertstood what you mean if so, look for the loadbalancer application shipped with tomcat which does something similar. On Mon, Mar 30, 2009 at 12:29 PM, Bart Ophelders bartopheld...@hotmail.com wrote: Hi, I would like to know if it is possible to let tomcat redirect ANY url ending with for example test.example.com to a certain webapp. Thanks in advance! -Bart Ophelders -- -- Yassine Elassad Bonn, Germany. Fon : +49 228 97629355 Mobile : +49 157 74519666 PEACE : ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SEVERE: Null component Catalina:type=DataSource
Hi, Yassine. As you can see at http://ovservice.org/tomcatConf.PNG - There are no any folders in /conf/ directory. I've followed your instructions, and this error doesn't appear. The difference was in the way of deploying, before the *.war deployment, I just copied the /war/ content via file manager to the Tomcat/webapps directory. Strange but there is a difference! Now I can say Yassine - thanks a lot! On Mon, Mar 30, 2009 at 4:25 PM, Yassine elas...@users.sourceforge.netwrote: Hi Alexandr, this may not solve your problem but could help to identify it, please do the following: - shutdown tomcat - remove any previously created youApplicationName.xml file in the $CATALINA_HOME/conf/Catalina/localhost/youApplicationName.xml it seems to me that when tomcat starts it does find an old instance there see the log: ( INFO: The listener org.springframework.web.context.ContextLoaderListener is already configured for this context. The duplicate definition has been ignored. ) and in addition to that, tomcat does not logs the information that it starts deploying yourApplicationName.xml - remove the $CATALINA_HOME/work/localhost/yourApplicationName directory. - package /war your application - start tomcat and let it cleanly starts until it says that the start up is success full - deploy your yourApplicationName.war into the webapps directory - send the logs again good luck! On Mon, Mar 30, 2009 at 6:22 AM, Alexandr Khlystov allex.khlys...@gmail.com wrote: *META-INF/context.xml*: ?xml version='1.0' encoding='utf-8'? Context WatchedResourceWEB-INF/web.xml/WatchedResource Resource name=jdbc/isDS auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@172.16.4.4:1523:kiptest username=test password=test maxActive=20 maxIdle=10 maxWait=-1 / Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=root password=root driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/mysql?autoReconnect=true / /Context *WEB-INF/web.xml, modified a bit to hide private data:* ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app id=WebAppUM resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/isDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref context-param param-namecontextConfigLocation/param-name param-value /WEB-INF/applicationContext-security.xml /WEB-INF/schedulers-context.xml /param-value /context-param context-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/classes/log4j.properties/param-value /context-param filter filter-namespringSecurityFilterChain/filter-name filter-classorg.springframework.web.filter.DelegatingFilterProxy/filter-class /filter filter-mapping filter-namespringSecurityFilterChain/filter-name url-pattern/*/url-pattern /filter-mapping listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener listener listener-classorg.springframework.web.util.Log4jConfigListener/listener-class /listener listener listener-classorg.springframework.security.ui.session.HttpSessionEventPublisher/listener-class /listener servlet id=com.company.application servlet-namecom.company.application/servlet-name servlet-classorg.springframework.web.servlet.DispatcherServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-namecom.company.application/servlet-name url-pattern*.form/url-pattern /servlet-mapping /web-app *catalina.2009-03-30.log:* Mar 30, 2009 11:09:11 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;E:\WINDOWS\Sun\Java\bin;E:\WINDOWS\system32;E:\WINDOWS;E:\Program Files\Windows Resource Kits\Tools\;E:\Program Files\PHP\;F:\home3\bin;F:\OraHome_1\bin;E:\WINDOWS\system32;E:\WINDOWS;E:\WINDOWS\System32\Wbem;E:\Program Files\Intel\DMIX;E:\Program Files\Diskeeper Corporation\Diskeeper\;E:\Program Files\7-Zip;E:\Program
RE: virtual hosts
I 'm trying to set up an OpenID provider for testing purposes. Since we only have one machine, there are more applications running, and maybe there could be some conflicts. I'm not sure. -Bart Date: Mon, 30 Mar 2009 14:07:38 +0200 Subject: Re: virtual hosts From: elas...@users.sourceforge.net To: users@tomcat.apache.org Hi Bart, I'm not aware of any other way to do it. I only wanted to know whats wrong with setting that sub domain (test.example.com) as the default host? are we missing some information that needs to be taken care of? Yassine On Mon, Mar 30, 2009 at 1:59 PM, Bart Ophelders bartopheld...@hotmail.com wrote: I don't like to put it as default, but if there is no other way.. Thanks! -Bart Date: Mon, 30 Mar 2009 12:39:42 +0100 From: p...@pidster.com To: users@tomcat.apache.org Subject: Re: virtual hosts Bart Ophelders wrote: Thanks for the quick response! Isn't it possible to do something like this: host name=*.test.example.com appBase=webapps/ Not quite like that. Engine defaultHost=test.example.com Host name=test.example.com ... /Engine Will result in all traffic that arrives at IPs specified in your Connectors, but that does not conform to another Host/Alias definition being delivered to the webapps of the defaultHost. p -Bart Ophelders Date: Mon, 30 Mar 2009 12:36:09 +0200 Subject: Re: virtual hosts From: elas...@users.sourceforge.net To: users@tomcat.apache.org Hi, i hope i undertstood what you mean if so, look for the loadbalancer application shipped with tomcat which does something similar. On Mon, Mar 30, 2009 at 12:29 PM, Bart Ophelders bartopheld...@hotmail.com wrote: Hi, I would like to know if it is possible to let tomcat redirect ANY url ending with for example test.example.com to a certain webapp. Thanks in advance! -Bart Ophelders -- -- Yassine Elassad Bonn, Germany. Fon : +49 228 97629355 Mobile : +49 157 74519666 PEACE : ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- -- Yassine Elassad Bonn, Germany. Fon : +49 228 97629355 Mobile : +49 157 74519666 PEACE : ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: virtual hosts
I don't like to put it as default, but if there is no other way.. Thanks! -Bart Date: Mon, 30 Mar 2009 12:39:42 +0100 From: p...@pidster.com To: users@tomcat.apache.org Subject: Re: virtual hosts Bart Ophelders wrote: Thanks for the quick response! Isn't it possible to do something like this: host name=*.test.example.com appBase=webapps/ Not quite like that. Engine defaultHost=test.example.com Host name=test.example.com ... /Engine Will result in all traffic that arrives at IPs specified in your Connectors, but that does not conform to another Host/Alias definition being delivered to the webapps of the defaultHost. p -Bart Ophelders Date: Mon, 30 Mar 2009 12:36:09 +0200 Subject: Re: virtual hosts From: elas...@users.sourceforge.net To: users@tomcat.apache.org Hi, i hope i undertstood what you mean if so, look for the loadbalancer application shipped with tomcat which does something similar. On Mon, Mar 30, 2009 at 12:29 PM, Bart Ophelders bartopheld...@hotmail.com wrote: Hi, I would like to know if it is possible to let tomcat redirect ANY url ending with for example test.example.com to a certain webapp. Thanks in advance! -Bart Ophelders -- -- Yassine Elassad Bonn, Germany. Fon : +49 228 97629355 Mobile : +49 157 74519666 PEACE : ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: virtual hosts
Thanks for the quick response! Isn't it possible to do something like this: host name=*.test.example.com appBase=webapps/ -Bart Ophelders Date: Mon, 30 Mar 2009 12:36:09 +0200 Subject: Re: virtual hosts From: elas...@users.sourceforge.net To: users@tomcat.apache.org Hi, i hope i undertstood what you mean if so, look for the loadbalancer application shipped with tomcat which does something similar. On Mon, Mar 30, 2009 at 12:29 PM, Bart Ophelders bartopheld...@hotmail.com wrote: Hi, I would like to know if it is possible to let tomcat redirect ANY url ending with for example test.example.com to a certain webapp. Thanks in advance! -Bart Ophelders -- -- Yassine Elassad Bonn, Germany. Fon : +49 228 97629355 Mobile : +49 157 74519666 PEACE : ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: virtual hosts
Hi Bart, I'm not aware of any other way to do it. I only wanted to know whats wrong with setting that sub domain (test.example.com) as the default host? are we missing some information that needs to be taken care of? Yassine On Mon, Mar 30, 2009 at 1:59 PM, Bart Ophelders bartopheld...@hotmail.com wrote: I don't like to put it as default, but if there is no other way.. Thanks! -Bart Date: Mon, 30 Mar 2009 12:39:42 +0100 From: p...@pidster.com To: users@tomcat.apache.org Subject: Re: virtual hosts Bart Ophelders wrote: Thanks for the quick response! Isn't it possible to do something like this: host name=*.test.example.com appBase=webapps/ Not quite like that. Engine defaultHost=test.example.com Host name=test.example.com ... /Engine Will result in all traffic that arrives at IPs specified in your Connectors, but that does not conform to another Host/Alias definition being delivered to the webapps of the defaultHost. p -Bart Ophelders Date: Mon, 30 Mar 2009 12:36:09 +0200 Subject: Re: virtual hosts From: elas...@users.sourceforge.net To: users@tomcat.apache.org Hi, i hope i undertstood what you mean if so, look for the loadbalancer application shipped with tomcat which does something similar. On Mon, Mar 30, 2009 at 12:29 PM, Bart Ophelders bartopheld...@hotmail.com wrote: Hi, I would like to know if it is possible to let tomcat redirect ANY url ending with for example test.example.com to a certain webapp. Thanks in advance! -Bart Ophelders -- -- Yassine Elassad Bonn, Germany. Fon : +49 228 97629355 Mobile : +49 157 74519666 PEACE : ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- -- Yassine Elassad Bonn, Germany. Fon : +49 228 97629355 Mobile : +49 157 74519666 PEACE : ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: virtual hosts
so you mean in the same machine you will be hosting different domains test1.example.com test2.example.com test3.example.com ...?? and you want to avoid having a conflict when someone is accessing other domains example test1, test2, ... ? actually if this is your case there is no problem at all, if you create a domain for each of your known domains/subdomain (test1.example.com,tes2.example.com,...) they will be considered for requests that targets them so for example requests for test1.example.com -- proper domain defined in server.xml and for anything else undefined * the defaultHost would be handling the requests Yassine On Mon, Mar 30, 2009 at 2:17 PM, Bart Ophelders bartopheld...@hotmail.com wrote: I 'm trying to set up an OpenID provider for testing purposes. Since we only have one machine, there are more applications running, and maybe there could be some conflicts. I'm not sure. -Bart Date: Mon, 30 Mar 2009 14:07:38 +0200 Subject: Re: virtual hosts From: elas...@users.sourceforge.net To: users@tomcat.apache.org Hi Bart, I'm not aware of any other way to do it. I only wanted to know whats wrong with setting that sub domain (test.example.com) as the default host? are we missing some information that needs to be taken care of? Yassine On Mon, Mar 30, 2009 at 1:59 PM, Bart Ophelders bartopheld...@hotmail.com wrote: I don't like to put it as default, but if there is no other way.. Thanks! -Bart Date: Mon, 30 Mar 2009 12:39:42 +0100 From: p...@pidster.com To: users@tomcat.apache.org Subject: Re: virtual hosts Bart Ophelders wrote: Thanks for the quick response! Isn't it possible to do something like this: host name=*.test.example.com appBase=webapps/ Not quite like that. Engine defaultHost=test.example.com Host name=test.example.com ... /Engine Will result in all traffic that arrives at IPs specified in your Connectors, but that does not conform to another Host/Alias definition being delivered to the webapps of the defaultHost. p -Bart Ophelders Date: Mon, 30 Mar 2009 12:36:09 +0200 Subject: Re: virtual hosts From: elas...@users.sourceforge.net To: users@tomcat.apache.org Hi, i hope i undertstood what you mean if so, look for the loadbalancer application shipped with tomcat which does something similar. On Mon, Mar 30, 2009 at 12:29 PM, Bart Ophelders bartopheld...@hotmail.com wrote: Hi, I would like to know if it is possible to let tomcat redirect ANY url ending with for example test.example.com to a certain webapp. Thanks in advance! -Bart Ophelders -- -- Yassine Elassad Bonn, Germany. Fon : +49 228 97629355 Mobile : +49 157 74519666 PEACE : ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- -- Yassine Elassad Bonn, Germany. Fon : +49 228 97629355 Mobile : +49 157 74519666 PEACE : ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- -- Yassine Elassad Bonn, Germany. Fon : +49 228 97629355 Mobile : +49 157 74519666 PEACE : ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: virtual hosts
Hi, i hope i undertstood what you mean if so, look for the loadbalancer application shipped with tomcat which does something similar. On Mon, Mar 30, 2009 at 12:29 PM, Bart Ophelders bartopheld...@hotmail.com wrote: Hi, I would like to know if it is possible to let tomcat redirect ANY url ending with for example test.example.com to a certain webapp. Thanks in advance! -Bart Ophelders -- -- Yassine Elassad Bonn, Germany. Fon : +49 228 97629355 Mobile : +49 157 74519666 PEACE : ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Help setting jforum and Apache-Tomcat connector
From: Chandler_Kiril [mailto:k.to...@abv.bg] Subject: Help setting jforum and Apache-Tomcat connector I have a problem while I am trying to run jforum and connect apache- tomcat with mod_jk connector. Unless you really need httpd for something useful (just serving static content isn't in that category), then don't bother. Simply run Tomcat on ports 80 and 443 and simplify your life. To avoid running Tomcat as root, use jsvc or iptables. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Help setting jforum and Apache-Tomcat connector
Hi Chandler, try this jk.conf instead you was missing to jkMount your application and you need to create a new worker that handles request for /jforum call it jfworker and use it in the jkMount line as shown here: IfModule mod_jk.c JkWorkersFile /etc/tomcat5/base/workers.properties JkLogFile /var/log/tomcat5/base/mod_jk.log JkLogLevel error # the /jforum context Alias /jforum /srv/www/tomcat5/base/webapps/jforum Directory /srv/www/tomcat5/base/webapps/jforum Options Indexes FollowSymLinks allow from all /Directory # The following line makes apache aware of the location of # the /servlets-examples context Alias /servlets-examples /srv/www/tomcat5/base/webapps/servlets-examples Directory /srv/www/tomcat5/base/webapps/servlets-examples Options Indexes FollowSymLinks allow from all /Directory # The following line makes apache aware of the location of # the /jsp-examples context Alias /jsp-examples /srv/www/tomcat5/base/webapps/jsp-examples Directory /srv/www/tomcat5/base/webapps/jsp-examples Options Indexes FollowSymLinks allow from all /Directory # The following line mounts all requests targeting /* # JkMount /* jfworker JkMount /servlets-examples/servlet/* ajp13 JkMount /jsp-examples/*.jsp ajp13 # The following line prohibits users from directly accessing WEB-INF Location /jsp-examples/WEB-INF/ AllowOverride None deny from all /Location Location /servlets-examples/WEB-INF/ AllowOverride None deny from all /Location /IfModule good luck! On Mon, Mar 30, 2009 at 8:39 AM, Chandler_Kiril k.to...@abv.bg wrote: Hello all, I have a problem while I am trying to run jforum and connect apache-tomcat with mod_jk connector. When I am typing http://localhost:8080/jforum - everything is just fine. But I want to access the forum with forum.mycompany.com. Before explain my conf files I will say that I am using Suse Linux Enterprise Server. I have put jforum in /srv/www/tomcat5/base/webapps. I have a virtual host defined in my apache and it looks like this: VirtualHost 10.0.11.51:80 ServerAdmin webmas...@mycompany.com ServerName forum.mycompany.com:8080 ServerAlias forum.mycompany.com ErrorLog /var/log/apache2/forum.mycompany.com-error_log CustomLog /var/log/apache2/forum.mycompany.com-access_log combined HostnameLookups Off UseCanonicalName Off JkMount /jforum/* ajp13 /VirtualHost My jk.conf file is this: IfModule mod_jk.c JkWorkersFile /etc/tomcat5/base/workers.properties JkLogFile /var/log/tomcat5/base/mod_jk.log # Log level to be used by mod_jk JkLogLevel error # The following line makes apache aware of the location of # the /jforum context Alias /jforum /srv/www/tomcat5/base/webapps/jforum Directory /srv/www/tomcat5/base/webapps/jforum Options Indexes FollowSymLinks allow from all /Directory # The following line makes apache aware of the location of # the /servlets-examples context Alias /servlets-examples /srv/www/tomcat5/base/webapps/servlets-examples Directory /srv/www/tomcat5/base/webapps/servlets-examples Options Indexes FollowSymLinks allow from all /Directory # The following line makes apache aware of the location of # the /jsp-examples context Alias /jsp-examples /srv/www/tomcat5/base/webapps/jsp-examples Directory /srv/www/tomcat5/base/webapps/jsp-examples Options Indexes FollowSymLinks allow from all /Directory # The following line mounts all JSP files and the /servlet/ uri to tomcat JkMount /servlets-examples/servlet/* ajp13 JkMount /jsp-examples/*.jsp ajp13 # The following line prohibits users from directly accessing WEB-INF Location /jsp-examples/WEB-INF/ AllowOverride None deny from all /Location Location /servlets-examples/WEB-INF/ AllowOverride None deny from all /Location /IfModule In my workers.properties file I have pointed the Tomcat base directory and JAVA home directory. I have a DNS and I have set it so forum.mycompany.com i going to the apache server. When i access forum.mycompany.com it came up a blank page with IT WORKS line. I have read a lot tutorials about connecting apache and tomcat but I have no success. Can you tell me what I am missing.
RE: Forwarding from one Context to another
From: behofmann [mailto:behofm...@gmail.com] Subject: Re: Forwarding from one Context to another The complete path should be /dev/jsp/index.jsp. Correct? I believe so. Unfortunately, I get a blank page in my browser and the page properties show /filter/jsp/index.jsp which is the original Context path. Remember that the client (browser) is not involved in a forward (it would participate in a redirect). You likely have something else going on in /dev/jsp/index.jsp using relative URLs. Since the last URL the browser was aware of was for the /filter webapp, any relative links passed to the browser will be evaluated based on that, not /dev. If I change the following to: RequestDispatcher rd = appContext.getRequestDispatcher( /dev/jsp/index.jsp ); That's definitely wrong, since the argument to getRequestDispatcher() is relative to the ServletContext it's called with. the browser trys to render /dev/dev/jsp/index.jsp. Which is what I would expect. In this case, it's clear you did get the proper ServletContext for the /dev webapp. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
RE: virtual hosts
Sorry if I was somewhat unclear. What I would like to accomplish is the following: If someone types start.test.example.com it should refer to a certain page. If someone types hello.test.example.com it should refer to the same page. I would like the user to be able to type anything before the test.example.com and tomcat still accepts it and refers to the correct page (anything.test.example.com) I know I can define multiple hosts, but it is not possible to know all the possibilities. So I was hoping the '*' wildcard would work (put *.test.example.com as host name in server.xml), but it doesn't. Tomcat 6 Java 1.6 CentOS 5.2 Thanks, -Bart Date: Mon, 30 Mar 2009 12:04:56 +0100 From: p...@pidster.com To: users@tomcat.apache.org Subject: Re: virtual hosts Bart Ophelders wrote: Hi, I would like to know if it is possible to let tomcat redirect ANY url ending with for example test.example.com to a certain webapp. It's not clear what you mean. URLs normally *start* with a domain, rather than end with it. If you mean can I assign *.domain.com to a specific webapp, the answer is yes - by defining the default host for a service. Perhaps you can elaborate? p P.S. Java version, Tomcast version, OS etc? Thanks in advance! -Bart Ophelders - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: A problem with tomcat 6.0.18
Hi, in other app I get one error little different bu referent the same class. java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long org.apache.el.lang.ELSupport.compare(ELSupport.java:81) org.apache.el.parser.AstGreaterThan.getValue(AstGreaterThan.java:45) org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186) com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71) com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:233) com.sun.facelets.tag.TagAttribute.getBoolean(TagAttribute.java:79) com.sun.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:49) com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) com.sun.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:175) com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64) com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:131) com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:310) com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:280) com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68) com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248) com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294) com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273) com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144) com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113) com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95) com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524) com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567) org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109) com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147) org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276) org.ajax4jsf.Filter.doFilter(Filter.java:175) br.gov.pbh.mcp.is.filter.EncodingFilter.doFilter(EncodingFilter.java:33) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
RE: A problem with tomcat 6.0.18
From: Paulo Vitor [mailto:foxpv...@gmail.com] Subject: Re: A problem with tomcat 6.0.18 in other app I get one error little different bu referent the same class. java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long org.apache.el.lang.ELSupport.compare(ELSupport.java:81) I was afraid what I gave you might be incomplete; will look into it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: A problem with tomcat 6.0.18
if I change the property end from Integer to Long, than works. On Mon, Mar 30, 2009 at 10:21 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Paulo Vitor [mailto:foxpv...@gmail.com] Subject: Re: A problem with tomcat 6.0.18 in other app I get one error little different bu referent the same class. java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long org.apache.el.lang.ELSupport.compare(ELSupport.java:81) I was afraid what I gave you might be incomplete; will look into it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Error JSP don`t support on tomcat 6.0
Hello! I try the hello.jsp in /webapps/geoserver and work! But in /webapps/geoserver/data/www dont't work. Also I add this sentences in catalina.policy and It don't work. // The permissions granted to Geoserver grant codebase file:${catalina.home}/webapps/geoserver/- { permission java.io.FilePermission file:${catalina.home}/webapps/geoserver/data/-, read,write,delete; permission java.util.PropertyPermission *, read,write; permission java.util.logging.LoggingPermission control; permission java.lang.RuntimePermission getClassLoader; permission java.lang.RuntimePermission preferences; permission java.lang.RuntimePermission shutdownHooks; permission java.lang.reflect.ReflectPermission suppressAccessChecks; }; Thank you Regards Abel Caldarale, Charles R chuck.caldar...@unisys.com escribió: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Error JSP don`t support on tomcat 6.0 I don't know how Spring does things, but I would have expected it to work with JSPs. It does; LambdaProbe utilizes Spring, and has a large number of JSPs. It's possible that GeoServer specifically disables direct-access to JSP files (from remote clients) as a security measure. Whether it's a security issue or not, the problem must lie in the Geoserver code. I can find no places within Tomcat itself that return a 415 status, other than the Webdav servlet. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. Este mensaje fue enviado a traves de www.coopenetlujan.com.ar - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
read variables from server.xml / runtime info of Connector thread pool status?
Is there a way to get the values of variables from the server.xml file from a webapp running within tomcat? Specifically, my webapp would like to know what the current value of the Connector acceptCount. Even more specifically, my webapp is serving pages, and answering SOAP requests. I need to prevent a large batch of SOAP requests from blocking every Connector thread - so when my filter which intercepts SOAP requests notes that the free Connector count is getting low, it can reject some SOAP requests. Any suggestions on how to do this? Thanks, Dan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How2 Disable PUT response in OPTIONS method
I have PUTs disabled but they are still being published as supported in response to the OPTIONS method. Allow: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS Server: Apache-Coyote/1.1 Actually doing a PUT returns a 403. But in-house security scanner just looks at response from the OPTIONS method. Is there any way to get Tomcat 6 from responding to the OPTIONS that it supports the PUT? -- View this message in context: http://www.nabble.com/How2-Disable-PUT-response-in-OPTIONS-method-tp22786288p22786288.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: read variables from server.xml / runtime info of Connector thread pool status?
Dan Armbrust wrote: Is there a way to get the values of variables from the server.xml file from a webapp running within tomcat? JMX. Specifically, my webapp would like to know what the current value of the Connector acceptCount. Even more specifically, my webapp is serving pages, and answering SOAP requests. I need to prevent a large batch of SOAP requests from blocking every Connector thread - so when my filter which intercepts SOAP requests notes that the free Connector count is getting low, it can reject some SOAP requests. Any suggestions on how to do this? Filter (generic) / Valve (Tomcat specific). Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How2 Disable PUT response in OPTIONS method
joeweder wrote: I have PUTs disabled but they are still being published as supported in response to the OPTIONS method. Which is correct as per the HTTP spec. Allow: GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS Server: Apache-Coyote/1.1 Actually doing a PUT returns a 403. But in-house security scanner just looks at response from the OPTIONS method. Then your security scanner needs to be fixed. Is there any way to get Tomcat 6 from responding to the OPTIONS that it supports the PUT? You would need to provide your own DefaultServlet implementation. You should be able to take Tomcat's and override the appropriate method. Alternatively, you should be able to achieve the same effect with a Filter and a wrapped response. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Replicated context is failing...or not ?
On Mar 29, 2009, at 8:58 PM, Caldarale, Charles R wrote: From: János Löbb [mailto:janos.l...@yale.edu] Subject: Replicated context is failing...or not ? Mar 29, 2009 11:59:47 AM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /usr/local/apache-tomcat-6.0.18/webapps/ROOT inside the host appBase has been specified, and will be ignored The above likely doesn't have anything to do with the replication problem, but on the off chance it does, you really should fix it. Looks like you have an illegal Context element somewhere. - Chuck Hi Chuck, I am looking into it, but for the first glance I see no other contexts hanging around. I found, that on one of the machines, pathsrv1, it has the Apple packaged Tomcat, I also have the following stack trace in the log when tomcat starts up: Mar 29, 2009 11:41:46 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/ Extensions:/usr/lib/java Mar 29, 2009 11:41:46 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Mar 29, 2009 11:41:46 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1890 ms Mar 29, 2009 11:41:46 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 29, 2009 11:41:46 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 Mar 29, 2009 11:41:46 AM org.apache.catalina.ha.tcp.SimpleTcpCluster start INFO: Cluster is about to start Mar 29, 2009 11:41:46 AM org.apache.catalina.tribes.transport.ReceiverBase bind INFO: Receiver Server Socket bound to:/10.48.106.107:4000 Mar 29, 2009 11:41:46 AM org.apache.catalina.tribes.membership.McastServiceImpl setupSocket INFO: Setting cluster mcast soTimeout to 500 Mar 29, 2009 11:41:46 AM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:4 Mar 29, 2009 11:41:46 AM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 48, 106, 44}:4000,{10, 48, 106, 44},4000, alive=4214446187,id={123 32 103 -62 110 51 77 58 -113 -57 43 -80 4 -20 -26 -108 }, payload={}, command={}, domain={}, ] Mar 29, 2009 11:41:46 AM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 48, 106, 101}:4000,{10, 48, 106, 101},4000, alive=16204423,id={124 -97 -40 -51 -99 -126 69 -73 -80 74 110 -9 80 -74 64 86 }, payload={}, command={}, domain={}, ] Mar 29, 2009 11:41:47 AM org.apache.catalina.tribes.transport.nio.NioReceiver listen SEVERE: Unable to process request in NioReceiver java.net.SocketException: Invalid argument at sun.nio.ch.Net.setIntOption0(Native Method) at sun.nio.ch.Net.setIntOption(Net.java:152) at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:372) at sun.nio.ch.SocketOptsImpl.setInt(SocketOptsImpl.java:46) at sun.nio.ch.SocketOptsImpl$IP.typeOfService(SocketOptsImpl.java:249) at sun.nio.ch.OptionAdaptor.setTrafficClass(OptionAdaptor.java:158) at sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:330) at org .apache .catalina.tribes.transport.nio.NioReceiver.listen(NioReceiver.java:273) at org .apache.catalina.tribes.transport.nio.NioReceiver.run(NioReceiver.java: 353) at java.lang.Thread.run(Thread.java:613) Mar 29, 2009 11:41:47 AM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers INFO: Done sleeping, membership established, start level:4 I realized that I had a mispell for jvmRoute in the server.xml of reptile, where jvmRoute=reptile1 instead of jvmRoute=reptile. This will be remedied tonight. Reptile is the machine to whom pathsrv1 should fail over, so it is possible that it was also the problem with the replicated context stack trace. The real workers in the workers.properties file are pathsrv1, raid2b and reptile. Thanks ahead, János - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: virtual hosts
Bart Ophelders wrote: Sorry if I was somewhat unclear. What I would like to accomplish is the following: If someone types start.test.example.com it should refer to a certain page. If someone types hello.test.example.com it should refer to the same page. I would like the user to be able to type anything before the test.example.com and tomcat still accepts it and refers to the correct page (anything.test.example.com) The first thing you need to understand is that there are 2 steps : 1) when the user types xxx.test.example.com, /his/ DNS resolver needs to resolve that to the IP address of your server. Otherwise, your Tomcat will never even receive and see those requests. 2) /then/ you can start thinking about how Tomcat should process the requests that it receives. Really make sure you understand (1) before you start with (2). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat with apache and eclipse.
Can anyone tell me if they know of another list where I can ask my questions. I thought tomcat would be most appropiate as its 2/4 tomcat 1/4 apache and 1/4 eclipse. On Fri, Mar 27, 2009 at 11:54 PM, Wesley Acheson wesley.ache...@gmail.comwrote: Hi all, I wish to launch tomcat from eclipse either using the conf files in my tomcat installation directory or with a similar configuration through eclipse on apache. The steps that I've already got working are as follows. I've installed XAMPP for apache and ssl support. I've installed tomcat. I've got apache forwarding requests to tomcat on both ports 443 and 80. (https and http). I've set up the root application with reloadable=true and a path to within my workspace. So far so good. Changing a file in this directory appears immediatly through tomcat started with the start bat file. However if I define the server in eclipse and start it, navigating to localhost:8080 gives a 404 error. Now I guess this is expected as eclipse is managing tomcat. I don't know however to do three things. 1. Start apache + tomcat through eclipse. (Necessary for SSL) 2. Start a root application through eclipse. 3. Have autocompile on in an eclipse project. (I don't like the rebuilding and deploying a WAR file as you loose session infomation and its quite unnecessary near the start of a development cycle when trivial JSP changes are involved) I hope that someone can help me with any or all of the above points. One last question is it possible for launching apache to launch tomcat? Regards, Wesley Acheson
Re: configuring tomcat with apache and eclipse.
I'm not sure why you would want to have Apache configured in eclipse? if i were you i would use only eclipse + tomcat for my development and when ever i want to test some Apache related configurations i will then do the configurations manually. afaik there is nothing (plug in) that takes care of Apache web server configurations in eclipse. Yassine On Mon, Mar 30, 2009 at 6:27 PM, Wesley Acheson wesley.ache...@gmail.com wrote: Can anyone tell me if they know of another list where I can ask my questions. I thought tomcat would be most appropiate as its 2/4 tomcat 1/4 apache and 1/4 eclipse. On Fri, Mar 27, 2009 at 11:54 PM, Wesley Acheson wesley.ache...@gmail.comwrote: Hi all, I wish to launch tomcat from eclipse either using the conf files in my tomcat installation directory or with a similar configuration through eclipse on apache. The steps that I've already got working are as follows. I've installed XAMPP for apache and ssl support. I've installed tomcat. I've got apache forwarding requests to tomcat on both ports 443 and 80. (https and http). I've set up the root application with reloadable=true and a path to within my workspace. So far so good. Changing a file in this directory appears immediatly through tomcat started with the start bat file. However if I define the server in eclipse and start it, navigating to localhost:8080 gives a 404 error. Now I guess this is expected as eclipse is managing tomcat. I don't know however to do three things. 1. Start apache + tomcat through eclipse. (Necessary for SSL) 2. Start a root application through eclipse. 3. Have autocompile on in an eclipse project. (I don't like the rebuilding and deploying a WAR file as you loose session infomation and its quite unnecessary near the start of a development cycle when trivial JSP changes are involved) I hope that someone can help me with any or all of the above points. One last question is it possible for launching apache to launch tomcat? Regards, Wesley Acheson -- -- Yassine Elassad Bonn, Germany. Fon : +49 228 97629355 Mobile : +49 157 74519666 PEACE : ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat service won't start
Since you're not using an original Tomcat-download but a pre-packaged version: - Did you do an emerge recently? - What gives netstat -lnp? - What's the Centos-package-maintainer's oppinion on that? Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat with apache and eclipse.
On Mon, Mar 30, 2009 at 6:35 PM, Yassine elas...@users.sourceforge.net wrote: if i were you i would use only eclipse + tomcat for my development and when ever i want to test some Apache related configurations i will then do the configurations manually. afaik there is nothing (plug in) that takes care of Apache web server configurations in eclipse. +1 Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat with apache and eclipse.
Hi Yassine, Gregor, mailing list readers. It was because of the SSL stuff I haven't learnt how to set up SSL with tomcat. Okay but as far as I know when you make any trivial change in eclipse, It builds an entire WAR file and restarts its tomcat instance which means lost sessions really annoying if your working on the forth step of a 4 step process. and also it means Its slow to develop. Maybe its just because thats the way I was used to working with Resin in work. I guess I'll give it a go. Thanks for your replies. Regards, Wes On Mon, Mar 30, 2009 at 7:10 PM, Gregor Schneider rc4...@googlemail.comwrote: On Mon, Mar 30, 2009 at 6:35 PM, Yassine elas...@users.sourceforge.net wrote: if i were you i would use only eclipse + tomcat for my development and when ever i want to test some Apache related configurations i will then do the configurations manually. afaik there is nothing (plug in) that takes care of Apache web server configurations in eclipse. +1 Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat with apache and eclipse.
Wes, On Mon, Mar 30, 2009 at 7:23 PM, Wesley Acheson wesley.ache...@gmail.com wrote: It was because of the SSL stuff I haven't learnt how to set up SSL with tomcat. I'm curious: What's the benefit having Tomcat run in SSL-mode for Servlet / JDP-development? Okay but as far as I know when you make any trivial change in eclipse, It builds an entire WAR file and restarts its tomcat instance which means lost sessions really annoying if your working on the forth step of a 4 step process. and also it means Its slow to develop. That's definately wrong. Eclipse won't restart Tomcat but will re-deploy the war-file. I'm not too sure about the next one. I remeber that here's a discussion going on here about losing sessions during re-deplyment: AFAIK a session is only lost after you stop an application - not during redeployment. However, there's a small catch: If you change the class which is added to a session as a sesson-attribute, I'm pretty much sure that the session will be lost, since deserializing the session-data might not work any more. Maybe one of the guys here can shed some more light how it's /supposed/ to be. There's an interesting thread here on the list regarding the loss of sessions during re-deployment which some consider a bug, and there's even a workaround for that bug: http://www.nabble.com/Session-lost-when-app.-is-redeployed-td22660549.html My personal oppinion: When I re-deploy a webapp (and the webapp is changed!), a session /must/ be lost, otherwise serialization / de-serialization of session-data might end up somewhere in Nirvana. Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Replicated context is failing...or not ?
From: János Löbb [mailto:janos.l...@yale.edu] Subject: Re: Replicated context is failing...or not ? I am looking into it, but for the first glance I see no other contexts hanging around. It won't be another Context, it will be an error in an existing one, such as specifying a path or docBase attribute where it isn't allowed. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat service won't start
2009/3/30 Gregor Schneider rc4...@googlemail.com: Since you're not using an original Tomcat-download but a pre-packaged version: - Did you do an emerge recently? No, I didn't. It's weird :( - What gives netstat -lnp? Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1715/mysqld tcp0 0 0.0.0.0:91020.0.0.0:* LISTEN 2383/bacula-fd tcp0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1616/cupsd tcp0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 1790/postmaster tcp0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 2537/0 tcp0 0 XX.69.XX.9:4430.0.0.0:* LISTEN 2316/httpd tcp0 0 :::80 :::* LISTEN 2316/httpd tcp0 0 :::22 :::* LISTEN 1598/sshd tcp0 0 ::1:6010:::* LISTEN 2537/0 udp0 0 0.0.0.0:631 0.0.0.0:* 1616/cupsd Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program namePath unix 2 [ ACC ] STREAM LISTENING 5114 2364/xfs /tmp/.font-unix/fs7100 unix 2 [ ACC ] STREAM LISTENING 4196 1616/cupsd /var/run/cups/cups.sock unix 2 [ ACC ] STREAM LISTENING 4302 1715/mysqld /var/lib/mysql/mysql.sock unix 2 [ ACC ] STREAM LISTENING 3906 1502/dbus-daemon/var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 3974 1525/pcscd /var/run/pcscd.comm unix 2 [ ACC ] STREAM LISTENING 4066 1571/acpid /var/run/acpid.socket unix 2 [ ACC ] STREAM LISTENING 4403 1790/postmaster /tmp/.s.PGSQL.5432 unix 2 [ ACC ] STREAM LISTENING 3724 1413/audispd /var/run/audispd_events I - What's the Centos-package-maintainer's oppinion on that? Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- -- Open Kairos http://www.openkairos.com Watch More TV http://sebelk.blogspot.com Sergio Belkin - - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Forwarding from one Context to another
Chuck, I made some modifications to my relative paths and everything is now working. Thanks again for your help. Brandon Caldarale, Charles R wrote: From: behofmann [mailto:behofm...@gmail.com] Subject: Re: Forwarding from one Context to another The complete path should be /dev/jsp/index.jsp. Correct? I believe so. Unfortunately, I get a blank page in my browser and the page properties show /filter/jsp/index.jsp which is the original Context path. Remember that the client (browser) is not involved in a forward (it would participate in a redirect). You likely have something else going on in /dev/jsp/index.jsp using relative URLs. Since the last URL the browser was aware of was for the /filter webapp, any relative links passed to the browser will be evaluated based on that, not /dev. If I change the following to: RequestDispatcher rd = appContext.getRequestDispatcher( /dev/jsp/index.jsp ); That's definitely wrong, since the argument to getRequestDispatcher() is relative to the ServletContext it's called with. the browser trys to render /dev/dev/jsp/index.jsp. Which is what I would expect. In this case, it's clear you did get the proper ServletContext for the /dev webapp. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. -- View this message in context: http://www.nabble.com/Forwarding-from-one-Context-to-another-tp22767662p22789363.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: configuring tomcat with apache and eclipse.
From: Gregor Schneider [mailto:rc4...@googlemail.com] Subject: Re: configuring tomcat with apache and eclipse. otherwise serialization / de-serialization of session-data might end up somewhere in Nirvana. But wait, nirvana is a good place - where we'd all like to end up. Perhaps you mean limbo? (Not to be confused with dancing under a bar...) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: configuring tomcat with apache and eclipse.
From: Wesley Acheson [mailto:wesley.ache...@gmail.com] Subject: Re: configuring tomcat with apache and eclipse. Okay but as far as I know when you make any trivial change in eclipse, It builds an entire WAR file and restarts its tomcat instance Are you saying you run a production Tomcat under Eclipse? That's insane. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat service won't start
Sergio, please do the following: - remove (rename) your catalina.out and try to start Tomcat with /etc/init.d/tomcat5 start (or whatever name your startup-script has) After that, the log-file should hopefully be a bit shorter. I'm a bit puzzled since your having quote /some/ errors in the previous log, starting with connection refused, ending with NoClassDefFound. One of my favourite words for the day: If you want to have an elephant for breakfast, you'll have to cut it into small pieces first.. No let's start to cut: 1. The entry INFO: Pausing Coyote HTTP/1.1 on http-8080 tells me you're trying to run Tomcat on port 8080 - correct? Can you please verify this by posting the Connector-element from your server.xml? 2. java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest: Could you please provide the directory-listing from ${CATALINA_HOME}/common/lib? 3. Now think: Usually, programs just don't mutate (at least, most of them ans esp. Tomcat). Now what have been your recent actions on that server? Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Slow servlet response under WinXP Pro
Hello! I am working on a servlet application. It is a data entry application that reads data from a Navision database, and writes data to MySQL. Here is the setup: WinXP Pro with Service Pack 3 (dev. box) / Windows 2003 Server (prod. box) Apache 2.2.11 Tomcat 6.0.18 MySQL 5.1.30 MySQL Connector 5.1.7 Driver for MySQL: org.gjt.mm.mysql.Driver Driver for Navision: sun.jdbc.odbc.JdbcOdbcDriver There is no native JDBC driver for Navision, so I have to use the ODBC version. I am having a problem with the time it takes to display a screen, when there is database activity going on. It can take anywhere from 30 seconds to 90 seconds for the screen to appear. This is not the time it takes Tomcat to start up for the first time, it is long after that point. I think I may have found the problem, but I do not know how to fix it. All of our systems (including the production server) have Symantec virus software running. When I turn the virus checking off, the application runs very well, when I turn the virus checking on, I experience the slow screen display. I googled for conflicts of Tomcat with virus scanning software, and only found reference to the fact that it can cause performance problems. But, I could not find a solution, other than turning off the virus scanning. Does anyone know of a solution to this problem? I have been told that turning off the virus scanning on the production box is not an option. I have also been told that Linux is not an option. I have gone through the Symantec software, and can not find a way to exclude Tomcat, etc. from its process. Where do I go from here? Thanks, Jon Oman
Re: configuring tomcat with apache and eclipse.
Chuck, actually Nirvana is a pretty good place but for serialized / de-serialized sessions ;) Anyway: On Mon, Mar 30, 2009 at 8:38 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: Are you saying you run a production Tomcat under Eclipse? That's insane. I'm understanding this scenario in such a way that there's a test/dev-environment that being a 1:1-copy of the production-environment. Makes sense, IMHO. However, what doesn't make sense is to use all the SSL-stuff when developing apps - unless you develop a SSL-aware-app. So calm down, think of your heart, I believbe the OP is just having an unusual development-environment. Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Slow servlet response under WinXP Pro
Jon, On Mon, Mar 30, 2009 at 8:45 PM, jo...@catholic-doc.org wrote: There is no native JDBC driver for Navision, so I have to use the ODBC version. ODBC is usually already a show-stopper on Java I think I may have found the problem, but I do not know how to fix it. All of our systems (including the production server) have Symantec virus software running. Well, maybe you should use an /anti-virus-software Symantec will slow down the process. When I turn the virus checking off, the application runs very well, when I turn the virus checking on, I experience the slow screen display So your problem is not Tomcat since Tomcat is not aware of any virus-protection nor interacts it with it. As long as you keep Symnatic running with your current configuration, you'll have to face the performance-problems. I'll bet my bottom penny that if you use a different servlet-cpntainer such as Resin, the problems will persist. Does anyone know of a solution to this problem? Erm - use Linux? But... I have been told that turning off the virus scanning on the production box is not an option. I have also been told that Linux is not an option. Well, maybe try a different scanner? Ever tried McAffee? Where do I go from here? I suggest to Symantec's support-site Sorry that I don't have any good news for you... Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: configuring tomcat with apache and eclipse.
From: Gregor Schneider [mailto:rc4...@googlemail.com] Subject: Re: configuring tomcat with apache and eclipse. I'm understanding this scenario in such a way that there's a test/dev-environment that being a 1:1-copy of the production-environment. Makes sense, IMHO. Perhaps, but then why would the OP be concerned about losing session information when updating with Eclipse, if this were only for test/development? So calm down, think of your heart Heart's fine, and I just spent a day instructing a student in an RS4, so I'm quite calm; now if I could only figure out how to afford one (and pay for the gas). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Replicated context is failing...or not ?
Have you tried the Tribes Cluster configuration without using NIOConnector ? System properties: org.apache.tomcat.util. net.NioSelectorShared If true, use a shared selector for servlet write/read. If not specified, the default value of true will be used. http://www.mbaworld.com/docs/config/systemprops.html configure sender for blocking: http://www.mbaworld.com/docs/config/cluster-sender.html configure receiver for blocking: http://www.mbaworld.com/docs/config/cluster-receiver.html were you able to ping Filip Hanik for details on using NIOConnector in Tribes ? Martin __ Disclaimer and confidentiality note This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided. From: janos.l...@yale.edu To: users@tomcat.apache.org Subject: Re: Replicated context is failing...or not ? Date: Mon, 30 Mar 2009 12:24:17 -0400 On Mar 29, 2009, at 8:58 PM, Caldarale, Charles R wrote: From: János Löbb [mailto:janos.l...@yale.edu] Subject: Replicated context is failing...or not ? Mar 29, 2009 11:59:47 AM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /usr/local/apache-tomcat-6.0.18/webapps/ROOT inside the host appBase has been specified, and will be ignored The above likely doesn't have anything to do with the replication problem, but on the off chance it does, you really should fix it. Looks like you have an illegal Context element somewhere. - Chuck Hi Chuck, I am looking into it, but for the first glance I see no other contexts hanging around. I found, that on one of the machines, pathsrv1, it has the Apple packaged Tomcat, I also have the following stack trace in the log when tomcat starts up: Mar 29, 2009 11:41:46 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/ Extensions:/usr/lib/java Mar 29, 2009 11:41:46 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Mar 29, 2009 11:41:46 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1890 ms Mar 29, 2009 11:41:46 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 29, 2009 11:41:46 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 Mar 29, 2009 11:41:46 AM org.apache.catalina.ha.tcp.SimpleTcpCluster start INFO: Cluster is about to start Mar 29, 2009 11:41:46 AM org.apache.catalina.tribes.transport.ReceiverBase bind INFO: Receiver Server Socket bound to:/10.48.106.107:4000 Mar 29, 2009 11:41:46 AM org.apache.catalina.tribes.membership.McastServiceImpl setupSocket INFO: Setting cluster mcast soTimeout to 500 Mar 29, 2009 11:41:46 AM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:4 Mar 29, 2009 11:41:46 AM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 48, 106, 44}:4000,{10, 48, 106, 44},4000, alive=4214446187,id={123 32 103 -62 110 51 77 58 -113 -57 43 -80 4 -20 -26 -108 }, payload={}, command={}, domain={}, ] Mar 29, 2009 11:41:46 AM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 48, 106, 101}:4000,{10, 48, 106, 101},4000, alive=16204423,id={124 -97 -40 -51 -99 -126 69 -73 -80 74 110 -9 80 -74 64 86 }, payload={}, command={}, domain={}, ] Mar 29, 2009 11:41:47 AM org.apache.catalina.tribes.transport.nio.NioReceiver listen SEVERE: Unable to process request in NioReceiver java.net.SocketException: Invalid argument at sun.nio.ch.Net.setIntOption0(Native Method) at sun.nio.ch.Net.setIntOption(Net.java:152) at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:372) at sun.nio.ch.SocketOptsImpl.setInt(SocketOptsImpl.java:46) at sun.nio.ch.SocketOptsImpl$IP.typeOfService(SocketOptsImpl.java:249) at sun.nio.ch.OptionAdaptor.setTrafficClass(OptionAdaptor.java:158) at sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:330) at org .apache .catalina.tribes.transport.nio.NioReceiver.listen(NioReceiver.java:273) at org
Re: configuring tomcat with apache and eclipse.
Chuck, On Mon, Mar 30, 2009 at 8:52 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: Perhaps, but then why would the OP be concerned about losing session information when updating with Eclipse, if this were only for test/development? Maybe the he's too lazy to login every time? Who knows... So calm down, think of your heart Heart's fine, and I just spent a day instructing a student in an RS4, so I'm quite calm; now if I could only figure out how to afford one (and pay for the gas). Calm? I guess I'd be a piece of dead meat if somebody else but me was driving =8) And since we're having a multi-nationale-multi-universal-car-financial-you-name-it-crises, I'm pretty sure care-prices are going to drop. And for the gas: Ever thought of solar-cells on the hood? ;) I'll call it a day now, see you guys tomorrow! Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Slow servlet response under WinXP Pro
Hi Jon, - Original Message From: jo...@catholic-doc.org jo...@catholic-doc.org To: users@tomcat.apache.org Sent: Monday, March 30, 2009 11:45:37 AM Subject: Slow servlet response under WinXP Pro Hello! I am working on a servlet application. It is a data entry application that reads data from a Navision database, and writes data to MySQL. Here is the setup: WinXP Pro with Service Pack 3 (dev. box) / Windows 2003 Server (prod. box) Apache 2.2.11 Tomcat 6.0.18 MySQL 5.1.30 MySQL Connector 5.1.7 Driver for MySQL: org.gjt.mm.mysql.Driver Looking at the source for the connector, you might as well use the com.mysql.jdbc.Driver since the org.gjt.mm.mysql.Driver just extends the com.mysql.jdbc.Driver. I remember reading somewhere that org.gjt.mm.mysql.Driver is for backward compatibility for older apps. It will be phased out eventually. You're recommended to use com.mysql.jdbc.Driver for new application development. Driver for Navision: sun.jdbc.odbc.JdbcOdbcDriver There is no native JDBC driver for Navision, so I have to use the ODBC version. I am having a problem with the time it takes to display a screen, when there is database activity going on. It can take anywhere from 30 seconds to 90 seconds for the screen to appear. This is not the time it takes Tomcat to start up for the first time, it is long after that point. I think I may have found the problem, but I do not know how to fix it. All of our systems (including the production server) have Symantec virus software running. When I turn the virus checking off, the application runs very well, when I turn the virus checking on, I experience the slow screen display. From what you describe, this problem doesn't seem to be Tomcat related since I use Win03 w/ Symantec Anti-Virus along with 3rd party firewall software. Also, the Win03 is configured as a Domain Controller. I don't have this slow response you're reporting. Your performance issue may lie with: 1) Fragmentation of your partition, especially the partition where the DB resides2) Size of your database 3) Configuration of MySQL 4) Query is optimized (?) 5) Sufficient hardware to handle the DB size (?) Regards, Tommy I googled for conflicts of Tomcat with virus scanning software, and only found reference to the fact that it can cause performance problems. But, I could not find a solution, other than turning off the virus scanning. Does anyone know of a solution to this problem? I have been told that turning off the virus scanning on the production box is not an option. I have also been told that Linux is not an option. I have gone through the Symantec software, and can not find a way to exclude Tomcat, etc. from its process. Where do I go from here? Thanks, Jon Oman - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: configuring tomcat with apache and eclipse.
On Mon, Mar 30, 2009 at 8:52 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Gregor Schneider [mailto:rc4...@googlemail.com] Subject: Re: configuring tomcat with apache and eclipse. I'm understanding this scenario in such a way that there's a test/dev-environment that being a 1:1-copy of the production-environment. Makes sense, IMHO. Perhaps, but then why would the OP be concerned about losing session information when updating with Eclipse, if this were only for test/development? Just because its a pain. We have an encrypted login and everything else depends on it. Loosing session means needing to do the entire authentication with a remote service again. Anyway yes I want it to be a fairly close mirror of the live enviornment. I want to be able to control what should be secure and insecure just like in production. I wan't to be able to test my mappings so that I know that apache is serving the correct content and tomcat is serving the correct content. I'd like to be able to have a fairly good idea everything is working as it should. Too often in work (this is a private project) I've seen problems where apache won't understand filenames with ;jsessionid attached. Or where the entire functioning depends on a rewrite. Or even worse if the other developers end up writing code like request.getRequestUrl().indexOf(localhost) or where they end up hard coding port 8080 if localhost is in the url for absolue links. Suddenly I need to debug two seperate apps and I can't run either of them on another port because they only work on ports 80 or 443 or 8080. Its for all the above reason I want apache in right in at the beginning. If I can't then I'd pefer to serve all content from tomcat in production also. That opens a can of worms for scalibilty though. On Mon, Mar 30, 2009 at 7:43 PM, Gregor Schneider rc4...@googlemail.comwrote: There's an interesting thread here on the list regarding the loss of sessions during re-deployment which some consider a bug, and there's even a workaround for that bug: http://www.nabble.com/Session-lost-when-app.-is-redeployed-td22660549.html Thanks I'll check it out. My personal oppinion: When I re-deploy a webapp (and the webapp is changed!), a session /must/ be lost, otherwise serialization / de-serialization of session-data might end up somewhere in Nirvana. I don't agree if nothing in the session has its serial number changed then it should remain. But thats just my opinion.
Re: configuring tomcat with apache and eclipse.
On Mon, Mar 30, 2009 at 9:16 PM, Gregor Schneider rc4...@googlemail.comwrote: Maybe the he's too lazy to login every time? Who knows... Thats pretty much it :) Seriously though when doing HTML work just making small incremental changes to the markup thats being served, It can be a real pain. But yes I'm lazy about it.
Re: Slow servlet response under WinXP Pro
Can you not use these instructions to exclude the directories in question http://service1.symantec.com/SUPPORT/ent-gate.nsf/docid/2002072314000354?Opendocid=2003033115550554nsf=ent-gate.nsfview=docid Regards, Wes On Mon, Mar 30, 2009 at 9:23 PM, Tommy Pham tommy...@yahoo.com wrote: Hi Jon, - Original Message From: jo...@catholic-doc.org jo...@catholic-doc.org To: users@tomcat.apache.org Sent: Monday, March 30, 2009 11:45:37 AM Subject: Slow servlet response under WinXP Pro Hello! I am working on a servlet application. It is a data entry application that reads data from a Navision database, and writes data to MySQL. Here is the setup: WinXP Pro with Service Pack 3 (dev. box) / Windows 2003 Server (prod. box) Apache 2.2.11 Tomcat 6.0.18 MySQL 5.1.30 MySQL Connector 5.1.7 Driver for MySQL: org.gjt.mm.mysql.Driver Looking at the source for the connector, you might as well use the com.mysql.jdbc.Driver since the org.gjt.mm.mysql.Driver just extends the com.mysql.jdbc.Driver. I remember reading somewhere that org.gjt.mm.mysql.Driver is for backward compatibility for older apps. It will be phased out eventually. You're recommended to use com.mysql.jdbc.Driver for new application development. Driver for Navision: sun.jdbc.odbc.JdbcOdbcDriver There is no native JDBC driver for Navision, so I have to use the ODBC version. I am having a problem with the time it takes to display a screen, when there is database activity going on. It can take anywhere from 30 seconds to 90 seconds for the screen to appear. This is not the time it takes Tomcat to start up for the first time, it is long after that point. I think I may have found the problem, but I do not know how to fix it. All of our systems (including the production server) have Symantec virus software running. When I turn the virus checking off, the application runs very well, when I turn the virus checking on, I experience the slow screen display. From what you describe, this problem doesn't seem to be Tomcat related since I use Win03 w/ Symantec Anti-Virus along with 3rd party firewall software. Also, the Win03 is configured as a Domain Controller. I don't have this slow response you're reporting. Your performance issue may lie with: 1) Fragmentation of your partition, especially the partition where the DB resides2) Size of your database 3) Configuration of MySQL 4) Query is optimized (?) 5) Sufficient hardware to handle the DB size (?) Regards, Tommy I googled for conflicts of Tomcat with virus scanning software, and only found reference to the fact that it can cause performance problems. But, I could not find a solution, other than turning off the virus scanning. Does anyone know of a solution to this problem? I have been told that turning off the virus scanning on the production box is not an option. I have also been told that Linux is not an option. I have gone through the Symantec software, and can not find a way to exclude Tomcat, etc. from its process. Where do I go from here? Thanks, Jon Oman - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Hosting Recommendations.
Hi is there any hosting recommendations. I've found online that rimuhost seemed to be recommended. Does anyone use that and what you think of it? Regards, Wesley Acheson
Re: Slow servlet response under WinXP Pro
- Original Message From: Tommy Pham tommy...@yahoo.com To: Tomcat Users List users@tomcat.apache.org Sent: Monday, March 30, 2009 12:23:54 PM Subject: Re: Slow servlet response under WinXP Pro Hi Jon, - Original Message From: jo...@catholic-doc.org To: users@tomcat.apache.org Sent: Monday, March 30, 2009 11:45:37 AM Subject: Slow servlet response under WinXP Pro Hello! I am working on a servlet application. It is a data entry application that reads data from a Navision database, and writes data to MySQL. Here is the setup: WinXP Pro with Service Pack 3 (dev. box) / Windows 2003 Server (prod. box) Apache 2.2.11 Tomcat 6.0.18 MySQL 5.1.30 MySQL Connector 5.1.7 Driver for MySQL: org.gjt.mm.mysql.Driver Looking at the source for the connector, you might as well use the com.mysql.jdbc.Driver since the org.gjt.mm.mysql.Driver just extends the com.mysql.jdbc.Driver. I remember reading somewhere that org.gjt.mm.mysql.Driver is for backward compatibility for older apps. It will be phased out eventually. You're recommended to use com.mysql.jdbc.Driver for new application development. Driver for Navision: sun.jdbc.odbc.JdbcOdbcDriver There is no native JDBC driver for Navision, so I have to use the ODBC version. I am having a problem with the time it takes to display a screen, when there is database activity going on. It can take anywhere from 30 seconds to 90 seconds for the screen to appear. This is not the time it takes Tomcat to start up for the first time, it is long after that point. I think I may have found the problem, but I do not know how to fix it. All of our systems (including the production server) have Symantec virus software running. When I turn the virus checking off, the application runs very well, when I turn the virus checking on, I experience the slow screen display. From what you describe, this problem doesn't seem to be Tomcat related since I use Win03 w/ Symantec Anti-Virus along with 3rd party firewall software. Also, the Win03 is configured as a Domain Controller. I don't have this slow response you're reporting. Your performance issue may lie with: 1) Fragmentation of your partition, especially the partition where the DB resides2) Size of your database 3) Configuration of MySQL 4) Query is optimized (?) 5) Sufficient hardware to handle the DB size (?) forgot 1 more :) 6) SAV configuration Regards, Tommy I googled for conflicts of Tomcat with virus scanning software, and only found reference to the fact that it can cause performance problems. But, I could not find a solution, other than turning off the virus scanning. Does anyone know of a solution to this problem? I have been told that turning off the virus scanning on the production box is not an option. I have also been told that Linux is not an option. I have gone through the Symantec software, and can not find a way to exclude Tomcat, etc. from its process. Where do I go from here? Thanks, Jon Oman - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Hosting Recommendations.
On Mon, Mar 30, 2009 at 9:51 PM, Martin Gainty mgai...@hotmail.com wrote: depends on what they provide and what your business requirements are Shopping Carts are nice..FTP access some of the more archaic sites have IIS only or Apache only..but if your'e only doing static content..then either one will do Some of them say you can only run One DB server or one AppServer (GlassFish/Weblogic/TC) anything specific you're looking for? Martin __ Disclaimer and confidentiality note This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided. I'm looking for Java hosting obviously. Preferably by a company that is used to hosting java projects and can assist with setting up the server. I'd pefer not to use shared hosting. I'm doing a media rich -read high space requirements and hopefully high bandwidth - website. This means that if its popular I'd like a service that scales well ie has a good upgrade plan. FTP access is a must. I'd prefer linux (even solaris if it was aforadable but its outside my range). Specifically I was looking at http://rimuhosting.com/order/startorder1.jsp?hom=t-vps as a starting spec but I don't know if the company are reptuable. I don't want a company that won't answer my questions or takes weeks to do so. I've previously had another hosting with three other companies (php though) and I was only really happy with the service from one of them. Regards, Wesley Acheson Date: Mon, 30 Mar 2009 21:41:13 +0200 Subject: Hosting Recommendations. From: wesley.ache...@gmail.com To: users@tomcat.apache.org Hi is there any hosting recommendations. I've found online that rimuhost seemed to be recommended. Does anyone use that and what you think of it? Regards, Wesley Acheson -- Express your personality in color! Preview and select themes for Hotmail®. See how.http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme
RE: mod_jk : recovery_options
I did not get any response to my questions, but from previous messages (posted by Rainer Jung) I believe that using the default values for retry and recovery_options may produce the unexpected result I was having. I changed the recovery_options on my AJP workers to value 27. So far I have not seen the tests failing again. -Jorge -Original Message- From: Jorge Medina [mailto:jmed...@e-dialog.com] Sent: Friday, March 27, 2009 4:16 PM To: users@tomcat.apache.org Subject: mod_jk : recovery_options Hi, I have an automated test of a web services application running on Tomcat (6.0.18) behind Apache (2.2.11) We use mod_jk (1.2.27) Our test suite runs a client against the Apache server on a system where we have a single Tomcat instance behind Apache. So far so good, all test passed. Now, I tried using Apache as a load balancer; using two Tomcat instances behind Apache. All of my tests passed, except for one that failed on a strange way. The test does the following: deleteAllItems createItem (A) createItem (B) createItem (C) list = getAllItems() at this point we verify that we get 3 items on the list, but instead of 3, the list returned 4 items!! This was the only test that failed from a test suite of about 400. I ran the same test suite again and the error did not occur again. So, could it be related to the configuration of the mod_jk module in Apache? Currently we don't specify the recovery_options for the Tomcat worker (therefore it defaults to 0) in workers.properties. We do not specify the retries either, so it defaults to 2. I was wondering if in the test above, a createItem call was resent to a Tomcat instance due to some communication error, and therefore 4 items were created in the database instead of the 3 we expected. I would appreciate if someone could shed more light on the recovery_options from what it is found in the documentation. Below is what I found on the documentation http://tomcat.apache.org/connectors-doc/reference/workers.html#Advanced% 20Worker%20Directives Thanks a lot. -Jorge -- recovery_options -- Worker Type: AJP,SUB Default value: 0 Recovery options influence, how we should handle retries, in case we detect a problem with Tomcat. How often we will retry is controlled by the attribute retries. This attribute is a bit mask. The following bits are allowed: 1: don't recover if Tomcat failed after getting the request 2: don't recover if Tomcat failed after sending the headers to client 4: close the connection to Tomcat, if we detect an error when writing back the answer to the client (browser) 8: always recover requests for HTTP method HEAD (even if Bits 1 or 2 are set) 16: always recover requests for HTTP method GET (even if Bits 1 or 2 are set) This features has been added in jk 1.2.6. Option 4 has been added in version 1.2.16, options 8 and 16 in version 1.2.24. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Hosting Recommendations.
Hi, I would recommend webappcabaret.com They also have a free trial. From: Wesley Acheson wesley.ache...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Monday, March 30, 2009 12:41:13 PM Subject: Hosting Recommendations. Hi is there any hosting recommendations. I've found online that rimuhost seemed to be recommended. Does anyone use that and what you think of it? Regards, Wesley Acheson
Re: Hosting Recommendations.
Check out http://www.eapps.com. You can start with virtual hosting which looks/feels entirely like your own machine, and scale up to dedicated servers. I've always had quite good response from them to my questions. --Ken On Mar 30, 2009, at 4:09 PM, Wesley Acheson wrote: On Mon, Mar 30, 2009 at 9:51 PM, Martin Gainty mgai...@hotmail.com wrote: depends on what they provide and what your business requirements are Shopping Carts are nice..FTP access some of the more archaic sites have IIS only or Apache only..but if your'e only doing static content..then either one will do Some of them say you can only run One DB server or one AppServer (GlassFish/Weblogic/TC) anything specific you're looking for? Martin __ Disclaimer and confidentiality note This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided. I'm looking for Java hosting obviously. Preferably by a company that is used to hosting java projects and can assist with setting up the server. I'd pefer not to use shared hosting. I'm doing a media rich -read high space requirements and hopefully high bandwidth - website. This means that if its popular I'd like a service that scales well ie has a good upgrade plan. FTP access is a must. I'd prefer linux (even solaris if it was aforadable but its outside my range). Specifically I was looking at http://rimuhosting.com/order/startorder1.jsp?hom=t-vps as a starting spec but I don't know if the company are reptuable. I don't want a company that won't answer my questions or takes weeks to do so. I've previously had another hosting with three other companies (php though) and I was only really happy with the service from one of them. Regards, Wesley Acheson Date: Mon, 30 Mar 2009 21:41:13 +0200 Subject: Hosting Recommendations. From: wesley.ache...@gmail.com To: users@tomcat.apache.org Hi is there any hosting recommendations. I've found online that rimuhost seemed to be recommended. Does anyone use that and what you think of it? Regards, Wesley Acheson -- Express your personality in color! Preview and select themes for Hotmail®. See how.http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Replicated context is failing...or not ?
János Löbb wrote: On Mar 29, 2009, at 8:58 PM, Caldarale, Charles R wrote: From: János Löbb [mailto:janos.l...@yale.edu] Subject: Replicated context is failing...or not ? Mar 29, 2009 11:59:47 AM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /usr/local/apache-tomcat-6.0.18/webapps/ROOT inside the host appBase has been specified, and will be ignored The above likely doesn't have anything to do with the replication problem, but on the off chance it does, you really should fix it. Looks like you have an illegal Context element somewhere. - Chuck Hi Chuck, I am looking into it, but for the first glance I see no other contexts hanging around. I found, that on one of the machines, pathsrv1, it has the Apple packaged Tomcat, I also have the following stack trace in the log when tomcat starts up: Mar 29, 2009 11:41:46 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Mar 29, 2009 11:41:46 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Mar 29, 2009 11:41:46 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1890 ms Mar 29, 2009 11:41:46 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 29, 2009 11:41:46 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 Mar 29, 2009 11:41:46 AM org.apache.catalina.ha.tcp.SimpleTcpCluster start INFO: Cluster is about to start Mar 29, 2009 11:41:46 AM org.apache.catalina.tribes.transport.ReceiverBase bind INFO: Receiver Server Socket bound to:/10.48.106.107:4000 Mar 29, 2009 11:41:46 AM org.apache.catalina.tribes.membership.McastServiceImpl setupSocket INFO: Setting cluster mcast soTimeout to 500 Mar 29, 2009 11:41:46 AM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:4 Mar 29, 2009 11:41:46 AM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 48, 106, 44}:4000,{10, 48, 106, 44},4000, alive=4214446187,id={123 32 103 -62 110 51 77 58 -113 -57 43 -80 4 -20 -26 -108 }, payload={}, command={}, domain={}, ] Mar 29, 2009 11:41:46 AM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 48, 106, 101}:4000,{10, 48, 106, 101},4000, alive=16204423,id={124 -97 -40 -51 -99 -126 69 -73 -80 74 110 -9 80 -74 64 86 }, payload={}, command={}, domain={}, ] Mar 29, 2009 11:41:47 AM org.apache.catalina.tribes.transport.nio.NioReceiver listen SEVERE: Unable to process request in NioReceiver java.net.SocketException: Invalid argument at sun.nio.ch.Net.setIntOption0(Native Method) at sun.nio.ch.Net.setIntOption(Net.java:152) at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:372) at sun.nio.ch.SocketOptsImpl.setInt(SocketOptsImpl.java:46) at sun.nio.ch.SocketOptsImpl$IP.typeOfService(SocketOptsImpl.java:249) at sun.nio.ch.OptionAdaptor.setTrafficClass(OptionAdaptor.java:158) at sun.nio.ch.SocketAdaptor.setTrafficClass(SocketAdaptor.java:330) at org.apache.catalina.tribes.transport.nio.NioReceiver.listen(NioReceiver.java:273) at org.apache.catalina.tribes.transport.nio.NioReceiver.run(NioReceiver.java:353) at java.lang.Thread.run(Thread.java:613) Mar 29, 2009 11:41:47 AM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers INFO: Done sleeping, membership established, start level:4 this is fixed by adding |-Djava.net.preferIPv4Stack=true to your command line | I realized that I had a mispell for jvmRoute in the server.xml of reptile, where jvmRoute=reptile1 instead of jvmRoute=reptile. This will be remedied tonight. Reptile is the machine to whom pathsrv1 should fail over, so it is possible that it was also the problem with the replicated context stack trace. The real workers in the workers.properties file are pathsrv1, raid2b and reptile. Thanks ahead, János - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Replicated context is failing...or not ?
remove the 'docBase' attribute from context.xml Filip János Löbb wrote: Hi, 3 machines, - pathsrv1, raid2b, reptile - Macs with OSX 10.5.6. Apache 2.2.9 mod_jk 1.2.26 and Tomcat 6.0.18. Every machine has one Tomcat instance and they form a cluster. Pathsrv1 act as a reverse proxy, so the request for the only clustered web app is coming as: http://pathsrv1.yalepath.org/apps/CassetteLabeler. The application works fine. It seemingly also fails over. The session is replicated. However et every startup I see this in the catalina.date.log: snip Mar 29, 2009 11:59:44 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Mar 29, 2009 11:59:44 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Mar 29, 2009 11:59:44 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 427 ms Mar 29, 2009 11:59:44 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 29, 2009 11:59:44 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 Mar 29, 2009 11:59:44 AM org.apache.catalina.ha.tcp.SimpleTcpCluster start INFO: Cluster is about to start Mar 29, 2009 11:59:44 AM org.apache.catalina.tribes.transport.ReceiverBase bind INFO: Receiver Server Socket bound to:/10.48.106.101:4000 Mar 29, 2009 11:59:44 AM org.apache.catalina.tribes.membership.McastServiceImpl setupSocket INFO: Setting cluster mcast soTimeout to 500 Mar 29, 2009 11:59:44 AM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:4 Mar 29, 2009 11:59:45 AM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 48, 106, 44}:4000,{10, 48, 106, 44},4000, alive=635579,id={52 -41 110 -92 62 -31 69 -107 -125 23 -35 74 71 -34 83 -68 }, payload={}, command={}, domain={}, ] Mar 29, 2009 11:59:45 AM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 48, 106, 107}:4000,{10, 48, 106, 107},4000, alive=1078841,id={17 -73 -19 -61 -104 103 73 -81 -117 69 58 -59 78 -1 -56 -41 }, payload={}, command={}, domain={}, ] Mar 29, 2009 11:59:45 AM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers INFO: Done sleeping, membership established, start level:4 Mar 29, 2009 11:59:45 AM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers INFO: Sleeping for 1000 milliseconds to establish cluster membership, start level:8 Mar 29, 2009 11:59:45 AM org.apache.catalina.tribes.io.BufferPool getBufferPool INFO: Created a buffer pool with max size:104857600 bytes of type:org.apache.catalina.tribes.io.BufferPool15Impl Mar 29, 2009 11:59:46 AM org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers INFO: Done sleeping, membership established, start level:8 Mar 29, 2009 11:59:47 AM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /usr/local/apache-tomcat-6.0.18/webapps/ROOT inside the host appBase has been specified, and will be ignored Mar 29, 2009 11:59:47 AM org.apache.catalina.ha.context.ReplicatedContext start SEVERE: Unable to start ReplicatedContext java.lang.NullPointerException at java.io.File.init(File.java:194) at org.apache.catalina.core.StandardContext.getBasePath(StandardContext.java:4784) at org.apache.catalina.ha.context.ReplicatedContext.start(ReplicatedContext.java:62) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at
Re: Hosting Recommendations.
Hi Wesley, I've used Rimuhosting for a few years now. Their customer service is good, and they have Java devs on staff, so they know what they are doing. I've had one issue in that time (I rebooted my host and it didn't come back up) and they had the issue fixed within a few hours. I would recommend them. Cheers, Ben Hi is there any hosting recommendations. I've found online that rimuhost seemed to be recommended. Does anyone use that and what you think of it? Regards, Wesley Acheson - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
org.apache.catalina.connector.Response causing OOM error
Hi All, My very 1st posting to the group. We have a web application that is running JDK 1.6.0_07 on Tomcat 5.5.26 on a RedHat kernel 2.6 and we see time and again OutOfMemory errors. When analyzing the resulted .hprof file we see the following class hierarchy a major reason for the OutOfMemory: Class Name Number of Objects%Heap Retained _ _ __ org.apache.catalina.connector.Response 55 60% org.apache.catalina.connector.OutputBuffer byte[] Is there a known Tomcat bug causing this memory leak? Any pointers would be very much appreciated. Regards, -- View this message in context: http://www.nabble.com/org.apache.catalina.connector.Response-causing-OOM-error-tp22796598p22796598.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: org.apache.catalina.connector.Response causing OOM error
From: chessknightt [mailto:chessknig...@yahoo.com] Subject: org.apache.catalina.connector.Response causing OOM error running JDK 1.6.0_07 on Tomcat 5.5.26 on a RedHat kernel 2.6 Thanks for providing the environment info. One more item: 32- or 64-bit JVM? Is there a known Tomcat bug causing this memory leak? No. Any pointers would be very much appreciated. How big is your heap? Is the OOME really an out of main heap condition, or is it one of the other possible causes, such as PermGen, open file descriptors, etc.? (There's usually some auxiliary info along with the OOME.) Are you trying to send a particularly large response? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
WebApp configuration best practice?
Hi guys, First, apologies if this is off-topic for the Tomcat list! If so, where should I ask it? My question is simple (I hope). What's the best practice when: 1) you're distributing a .war file 2) the app needs some simple configuration information 3) it will likely be deployed onto shared hosts with no access to server.xml Any enlightenment will be much appreciated! Cheers, -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
Re: SEVERE: Null component Catalina:type=DataSource
I was wrong, deployment method matters but it is not the root cause, root cause is the Sun Application Server *.jar: appserv-rt.jar; if it is included into mywebapp/WEB-INF/lib directory cause the JNDI to fail, I don't why yet. But problem definetely in this *.jar. We use it because customer installation will be on Sun App Server, but for deployment I want to use Tomcat. Our security logic is made on Acegi, which uses WebPrincipal from appserv-rt.jar. So I don't know how to resolve it now. 2009/3/30 Alexandr Khlystov allex.khlys...@gmail.com Hi, Yassine. As you can see at http://ovservice.org/tomcatConf.PNG - There are no any folders in /conf/ directory. I've followed your instructions, and this error doesn't appear. The difference was in the way of deploying, before the *.war deployment, I just copied the /war/ content via file manager to the Tomcat/webapps directory. Strange but there is a difference! Now I can say Yassine - thanks a lot! On Mon, Mar 30, 2009 at 4:25 PM, Yassine elas...@users.sourceforge.netwrote: Hi Alexandr, this may not solve your problem but could help to identify it, please do the following: - shutdown tomcat - remove any previously created youApplicationName.xml file in the $CATALINA_HOME/conf/Catalina/localhost/youApplicationName.xml it seems to me that when tomcat starts it does find an old instance there see the log: ( INFO: The listener org.springframework.web.context.ContextLoaderListener is already configured for this context. The duplicate definition has been ignored. ) and in addition to that, tomcat does not logs the information that it starts deploying yourApplicationName.xml - remove the $CATALINA_HOME/work/localhost/yourApplicationName directory. - package /war your application - start tomcat and let it cleanly starts until it says that the start up is success full - deploy your yourApplicationName.war into the webapps directory - send the logs again good luck! On Mon, Mar 30, 2009 at 6:22 AM, Alexandr Khlystov allex.khlys...@gmail.com wrote: *META-INF/context.xml*: ?xml version='1.0' encoding='utf-8'? Context WatchedResourceWEB-INF/web.xml/WatchedResource Resource name=jdbc/isDS auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@172.16.4.4:1523:kiptest username=test password=test maxActive=20 maxIdle=10 maxWait=-1 / Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=root password=root driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/mysql?autoReconnect=true / /Context *WEB-INF/web.xml, modified a bit to hide private data:* ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app id=WebAppUM resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/isDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref context-param param-namecontextConfigLocation/param-name param-value /WEB-INF/applicationContext-security.xml /WEB-INF/schedulers-context.xml /param-value /context-param context-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/classes/log4j.properties/param-value /context-param filter filter-namespringSecurityFilterChain/filter-name filter-classorg.springframework.web.filter.DelegatingFilterProxy/filter-class /filter filter-mapping filter-namespringSecurityFilterChain/filter-name url-pattern/*/url-pattern /filter-mapping listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener listener listener-classorg.springframework.web.util.Log4jConfigListener/listener-class /listener listener listener-classorg.springframework.security.ui.session.HttpSessionEventPublisher/listener-class /listener servlet id=com.company.application servlet-namecom.company.application/servlet-name servlet-classorg.springframework.web.servlet.DispatcherServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-namecom.company.application/servlet-name url-pattern*.form/url-pattern /servlet-mapping /web-app *catalina.2009-03-30.log:* Mar 30, 2009 11:09:11 AM