Tomcat 6: 20 minutes on 10 minutes off duty cycle
After upgrading from Tomcat 5 to Tomcat 6 I encountered a situation where Tomcat cycles through working hard for 20 minutes, and slowing down for 10 minutes. We run a Java servlet application using JDK 1.5.0-15 and Tomcat 5.5.26. One part of the application processes an XML file, and this can saturate the blade running Tomcat. To overcome this we tested in a environment using Apache (httpd 2.2.3-11) to load balance Tomcats on separate blades using mod_proxy_ajp. This worked well. I upgraded the JDK to 1.6.0-07. I saw an increase in throughput of around three requests per second when using mod_proxy_ajp to a single Tomcat. This was without recompiling the Java code. I then upgraded to Tomcat 6.0.18. Throughput took a slight hit of one request per second. I was testing using WebLOAD running one test over five minutes on each configuration and another over one hour. An anomaly showed up in the one hour Tomcat 6 testing. Twenty minutes into the test throughput dropped from around 40 requests per second to two requests per second for a period of around 10 minutes. This occurred later in the test as well. At the time of the slow down the utilisation of the Tomcat blade dropped from 70% to 30% (as reported by top). The behaviour is similar if I go directly to Tomcat using port 8080. This behaviour is repeatable on Tomcat 6, but does not occur on Tomcat 5. The application is not logging any errors. Monitoring using jconsole does not show anything out of the ordinary. Has anyone seen this sort of behaviour when upgrading to Tomcat 6? If not, does anyone have any idea of how I may be able to determine the cause of this behaviour? Thanks, Bryan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying an app from remote url (tomcat manager)
hi , I tried the to deploy a war from an http url I tried the following syntax jar:http://hostname:port/path/to/a/warfile.war! as given in the javadocs for ManagerServlet It throws the following exception on console java.io.IOException: The filename, directory name, or volume label syntax is inc orrect at java.io.WinNTFileSystem.canonicalize0(Native Method) at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:395) at java.io.File.getCanonicalPath(File.java:531) at org.apache.catalina.manager.ManagerServlet.copy(ManagerServlet.java:1 524) at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java :807) Why is it using the WinNTFileSystem? isn't It is an http connection? Am I doing something wrong ? -- --Noble Paul - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
file upload
When I try to write a file in a folder in the server I get this error: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. /home/www/virtual/test/images/htdocs/ flyers/upload_1ed3f2d1_11c313f7288__8000_.tmp (Permission denied) . . Caused by: java.io.FileNotFoundException: /home/www/virtual/test/images/ htdocs/flyers/upload_1ed3f2d1_11c313f7288__8000_.tmp (Permission denied) The folder is set to chmod 777... Help please (sorry for my bad english) -- Silvio
question : encounter java.net.SocketTimeoutException: Read timed out occasionally
Hi all, we are encountering java.net.SocketTimeoutException: Read timed out occasionally, wondering if it's something related to network problem, Would highly appreciate if someone can help, following are the program stack found in tomcat log for your reference : WARNING: Exception thrown whilst processing POSTed parameters java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at java.io.BufferedInputStream.read(BufferedInputStream.java:313) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:626) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:564) at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:200) at org.apache.jk.common.JkInputStream.doRead(JkInputStream.java:179) at org.apache.coyote.Request.doRead(Request.java:419) at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:265) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:280) at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193) ...skipping one line at org.apache.catalina.connector.Request.parseParameters(Request.java:2379) at org.apache.catalina.connector.Request.getParameter(Request.java:1005) at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:353) -- -- -- Thanks Best Regards. James Wang
symlinks in webapps
Hi guys, I'm trying to make a link to an app inside the webapps directory in tomcat 6.0.18 . The goal is to have the same webapp referenced by two contexts, and this worked fine in 5.x . In 6.x, if I make a symlink to a webapp in the webapps directory, the app fails to start: [EMAIL PROTECTED] webapps]# ln -s WebMail WebMail2 [EMAIL PROTECTED] webapps]# ls -l total 24 drwxr-xr-x 11 mwtomcat mwtomcat 4096 Sep 3 10:57 docs drwxr-xr-x 5 mwtomcat mwtomcat 4096 Sep 3 10:57 examples drwxr-xr-x 5 mwtomcat mwtomcat 4096 Sep 3 10:57 host-manager drwxr-xr-x 5 mwtomcat mwtomcat 4096 Sep 3 10:57 manager drwxr-xr-x 3 mwtomcat mwtomcat 4096 Sep 3 10:57 ROOT drwxr-xr-x 6 mwtomcat mwtomcat 4096 Aug 28 15:32 WebMail lrwxrwxrwx 1 root root7 Sep 5 10:06 WebMail2 - WebMail Sep 5, 2008 10:07:07 AM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Sep 5, 2008 10:07:07 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/WebMail] startup failed due to previous errors I've tried to add the allowLinking property in context.xml (in the default conf/context.xml and in the META-INF/context.xml of my webapp... just to be sure), but it don't work. I guess that allowLinking allows to make links from inside the context to other places in the filesystem, not to link the context itself to another webapp. I found this very useful in tests environment. Is there a way to achieve this in tomcat 6? -- Claudio Tassini
difference in how applications are displaying
Hi I think this may relate to a tomcat setting - but I may be completely wrong. I have 2 servers which should be running identical looking webapps under Apache Tomcat. Accessing the test app on server 1 from a client using IE6, within the app, next to a range of data input fields, an arrow icon permanently exists which, if you click on it, brings up a lookup table of values. Accessing the live app on server 2 from the same IE6 client, next to the range of data input fields the arrow icon only exists once you hover the mouse over the relevant area of the browser. How can I get the arrow icon to appear permanently as in test? Installed on both servers (Windows 2003): Java 2 RuntimeEnv SE v1.4.2_15 Java 2 SDX, SE v1.4.2_15 Java TM 6 Update 3 Apache Tomcat 4.1 Regards Ewan Scott ** This email and any files transmitted with it are privileged, confidential and subject to copyright. Any unauthorised use or disclosure of any part of this email is prohibited. If you are not the intended recipient please inform the sender immediately; you should then delete the email and remove any copies from your system. The views or opinions expressed in this communication may not necessarily be those of Scottish Borders Council. Please be advised that Scottish Borders Council's incoming and outgoing email is subject to regular monitoring and any email may require to be disclosed by the Council under the provisions of the Freedom of Information (Scotland) Act 2002. **
Re: Need help with Tomcat MBean support
Steve Cohen wrote: Let me ask my question a little more directly: Does the presence of a descriptor cause instantiation of an instance of an MBean or do I have to write code to create a server-side instance of my MBean and if so, where should this code reside or is there some configuration artifact that causes this instantiation to happen? Why don't you take a look at these two articles: http://today.java.net/pub/a/today/2005/11/15/using-jmx-to-manage-web-applications.html?page=1 http://marxsoftware.blogspot.com/2008/07/jmx-model-mbeans-with-apache-commons.html If you use the NetBeans IDE you might be interested in the JMX plugin for NB. Here is a link to a tutorial Getting Started with JMX Monitoring in NetBeans IDE 6.0 http://www.netbeans.org/kb/60/java/jmx-getstart.html cheers, HH Steve Cohen wrote: H. Hall wrote: Okay, thanks again. This got me off square one. Now on to square two. :-) 1. I compose a legal mbeans-descriptor.xml file configuring my MBean according to DTD. I place it in the domain Catalina. Don't know if this is right. Also tried my own domain name. 2. I launch Tomcat with parameters sufficient to launch JMX, define a port etc. This works. 3. I modify the simple Client.java from the Sun tutorial modifying the url to talk to my port and the jmxrmi context. This succeeds to the point of letting me iterate the list of available domain names. 4, When I use the version of the descriptor with a custom Domain name, this domain name does not even appear in the list and the Client app fails with a ClassNotFoundException. 5. When I use the version of the descriptor that places my mbean in the Catalina domain, my bean is not found within that Domain and the Client app also fails - with a ClassNotFoundException. Is there a preexisting domain within Tomcat to which I should attach my mbean? If not, what must I do to get my mbean found. Steve Cohen wrote: I am trying to write a custom MBean to put a particular function of our application under management control This application is currently deployed under Tomcat 6.0. I do not need remote monitoring/management. Local management will do. I am perfectly happy to invoke my management function through a shell script invoking a java jmx client to perform the action required. I find the Tomcat documentation on this subject confusing and sparse. The howto page here: http://tomcat.apache.org/tomcat-6.0-doc/mbeans-descriptor-howto.html simply shows a sample configuration file without explaining which elements on it are required, which pertain to the specific example, etc. Is there a standard syntax for these mbean descriptor files with a true explanation of each field? I believe it's based on the Apache Commons Modeler. Here is a link to the DTD for the Model MBeans Configuration File: http://jakarta.apache.org/commons/dtds/mbeans-descriptors.dtd Here is a link for the java doc for package org.apache.tomcat.util.modeler. Scroll down to description: http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/tomcat/util/modeler/package-summary.html cheers, HH Also, compared to the standard Sun JMX tutorial - which elements does Tomcat provide - server, agent ? Thanks. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- H. Hall ReedyRiver Group LLC http://www.reedyriver.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with mod_jk and authentication not working
I did some research and people reported a problem with mod_jk 1.2.24, but they said it was going to be fixed in 1.2.25, I am using 1.2.26 and I am still experiencing the same problem. I can directly access tomcat 'manager' application and I get prompted, but when I try to access the application through apache2, I never get prompted and I can see in the mod_jk log: [Fri Sep 05 07:56:20 2008] [22723:3067476880] [info] jk_handler::mod_jk.c (2341): No body with status=401 for worker=ajp13 I am using: Apache/2.2.8 mod_jk 1.2.26, and ModSecurity for Apache/2.5.5 __ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/
Re: Need help with Tomcat MBean support
Thanks again. These articles are very clear and simple. They do raise a couple questions, though. In the first article, no mention is made of an mbeans-descriptor.xml file. It's all done programatically in the first article - which might be fine for my needs. The Tomcat documentation does make it sound as though you can drop the xml file into your MBean package directory and something provided by Tomcat picks it up and makes the MBean accessible, but it now seems that this is not the case. The second article shows code to read these XML files ( CommonsModelMBeanDemonstrator.applyCommonsModeler() ) which leads me to ask whether Tomcat comes with commons-modeler support built-in or whether this must be added manually as in this sample. Anyway, it appears that there are two approaches here 1 - do everything programatically, in which case the .xml file isn't needed 2 - use the commons-modeler xml-file approach (question remains what support, if any, Tomcat provides for this). Do I have this right? H. Hall wrote: Steve Cohen wrote: Let me ask my question a little more directly: Does the presence of a descriptor cause instantiation of an instance of an MBean or do I have to write code to create a server-side instance of my MBean and if so, where should this code reside or is there some configuration artifact that causes this instantiation to happen? Why don't you take a look at these two articles: http://today.java.net/pub/a/today/2005/11/15/using-jmx-to-manage-web-applications.html?page=1 http://marxsoftware.blogspot.com/2008/07/jmx-model-mbeans-with-apache-commons.html If you use the NetBeans IDE you might be interested in the JMX plugin for NB. Here is a link to a tutorial Getting Started with JMX Monitoring in NetBeans IDE 6.0 http://www.netbeans.org/kb/60/java/jmx-getstart.html cheers, HH - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 (Unable to find servlet or load servlet jar from a client jar)
Thank you all for the help that was the file i needed to find the servlet. I'm just surprised it isn't stressed more to use a web.xml file for each webapp since it is so vital. Thanks again -Robert Martin Gainty wrote: sample web.xmlBR ?xml version=1.0 encoding=ISO-8859-1?BR !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;BR web-appBR display-nameTest for Rob/display-nameBR servletBR servlet-namebeindxServlet1/servlet-nameBR servlet-classpackage.class/servlet-classBR init-paramBR param-nameorg.apache.velocity.properties/param-nameBR param-valuebeindxServlet1.properties/param-valueBR /init-paramBR /servletBR servlet-mappingBR BR servlet-namebeindxServlet1/servlet-nameBR url-pattern/beindxservlet/url-patternBR welcome-file-listBR welcome-fileindex.jsp/welcome-fileBR /welcome-file-listBR taglibBR taglib-uri/WEB-INF/struts-bean/taglib-uriBR taglib-location/WEB-INF/struts-bean.tld/taglib-locationBR /taglibBR /web-appBR BR MartinBR __ BR Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 3 Sep 2008 16:00:30 -0400 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: Tomcat 6 (Unable to find servlet or load servlet jar from a client jar) Thank you for responding to the post. I have looked at the web.xml in the /usr/apache-tomcat-6.0.18/conf directory. I've tried creating my own web.xml under the /usr/apache-tomcat-6.0.18/webapps/belknap/WEB-INF directory which i will attach. It would be greatly appreciated if you have any advice on changes i should make to it in order to get it to work, thank you. Robert Pid wrote: Robert K. Vanderhoek wrote: Unable to find servlet or load servlet jar from a client jar, can this be done with the default conf files? Do i have to create a web.xml file for each webapp? Yes, if you want to use servlets. web.xml provides the means to map the servlet(s) to url patterns. p I'm using jar files created for Apache Jserv back in 1998 probably using the servlet specification 2.1 could this be part of the problem? Software running on server - RHEL4u3 - Java6u7 - Tomcat6.0 Directory structure - /usr/apache-tomcat-6.0.18 (CATALINA_HOME) - /usr/apache-tomcat-6.0.18/webapps/belknap (webapp folder) - /usr/apache-tomcat-6.0.18/webapps/belknap/*.gif, *.html, *.jar (client) - /usr/apache-tomcat-6.0.18/webapps/belknap/WEB-INF/lib/beindxServlet1.jar (servlet) Unpacked beindxServlet1.jar - /beindxservlet/beindxServlet1.class - /META-INF/ Thank you, Robert - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . -- Robert K. Vanderhoek (603) 772-2305 Computer Technician IT Department Connor Connor 16 Kingston Rd Unit #5 Exeter, NH 03833 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception when trying to configure a pool of connections for use of WS
Hello everybody, I am trying to set up the configuration for a pool of connections to a MySQL DB and I get the following exception when deploying on Tomcat. I followed the steps at http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html. The application actually consists of a web service that performs a query to the DB. Any hints or suggestions? Thank you! Context file ?xml version=1.0 encoding=UTF-8? Context path=/DB_WS debug=5 reloadable=true crossContext=true Resource name=jdbc/MySQL_cellmlrep type=javax.sql.DataSource auth=Container user=root password=root driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/cellmlrep maxActive=8 maxIdle=4/ /Context Web.xml ?xml version=1.0 encoding=UTF-8? web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; listener listener-classcom.sun.xml.ws.transport.http.servlet.WSServletContextListener/listener-class /listener servlet servlet-nameDBAccess/servlet-name servlet-classcom.sun.xml.ws.transport.http.servlet.WSServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameDBAccessService/servlet-name servlet-classcom.sun.xml.ws.transport.http.servlet.WSServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameDBAccess/servlet-name url-pattern/DBAccess/url-pattern /servlet-mapping servlet-mapping servlet-nameDBAccessService/servlet-name url-pattern/DBAccessService/url-pattern /servlet-mapping session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list resource-ref description The database DataSource for the Acme web application. /description res-ref-namejdbc/MySQL_cellmlrep/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app Exception java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.BasicDataSource cannot be cast to javax.naming.Context at org.apache.catalina.core.NamingContextListener.createSubcontexts(NamingContextListener.java:1203) at org.apache.catalina.core.NamingContextListener.addResource(NamingContextListener.java:1015) at org.apache.catalina.core.NamingContextListener.createNamingContext(NamingContextListener.java:633) at org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:237) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252) 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 org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Re: Tomcat 5.5. META-INF/context.xml ignored when deploying as war.
Eric Berry wrote: Ok cool. Thank you very much for clearing that up for me. The first time I deployed the war, there wouldn't have been a context in any of the 3 locations mentioned above. As you said, it would have copied the context.xml file from the war into the 3rd location as contextpath.xml correct? Yes, correct. I looked at in $CATALINA_HOME/conf/[enginename]/[hostname]/, and sure enough there is a mywar-snapshot.xml. When I look at the contents of that file it it contains this: [quote] Context path=/mywar / [/quote] So in this case the file-name itself is actually used rather than the path specified in this file? I know you quoted this from the documentation, I just wanted to clarify that this is what it meant. Yes, that is correct. With that context file, you don't actually need one. My understanding aside, this seems a bit counter-intuitive to me. Why recommend the use of the context.xml if it really isn't used? The context.xml is recommended if you need to set other context parameters (eg privileged, DataSources etc). It isn't recommended to always use one. In either case, thank you very much for the help. You're welcome. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6: 20 minutes on 10 minutes off duty cycle
Bryan McGinty wrote: using mod_proxy_ajp. This worked well. I'd use mod_proxy_http given a free choice. But anyway... Has anyone seen this sort of behaviour when upgrading to Tomcat 6? If not, does anyone have any idea of how I may be able to determine the cause of this behaviour? Use a profiler like YourKit to measure where Tomcat is spending it's time. Hopefully, you'll see significantly different method timing distributions between the two cases. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
define jndi/datasource resource (something similar to websphere?)
i'm trying to deploy a spring/hibernate based application on tomcat and i have this defined in application: - bean id=dataSource class=org.springframework.jndi.JndiObjectFactoryBean property name=jndiName value=java:DB2DS / /bean - application is currently running on websphere where jndi/datasource is defined via websphere admin console and nothing special is required in application. i'm trying to find a way where i don't need to change my app to work on tomcat, some way to define jndi resource that doesn't require changes to application. every document related to this requires some changes to app so i'm wondering how can i configure tomcat with minimal changes in my app? Aljosa Mohorovic - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: question : encounter java.net.SocketTimeoutException: Read timed out occasionally
James Wang wrote: Hi all, we are encountering java.net.SocketTimeoutException: Read timed out occasionally, wondering if it's something related to network problem, Would highly appreciate if someone can help, following are the program stack If the client is IE, the server httpd and you are using Keep-Alive try disabling it. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying an app from remote url (tomcat manager)
Noble Paul നോബിള് नोब्ळ् wrote: hi , I tried the to deploy a war from an http url I tried the following syntax jar:http://hostname:port/path/to/a/warfile.war! I haven't got a system handy to test with but do you need the final '/'? That would make the URL: jar:http://hostname:port/path/to/a/warfile.war!/ Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: define jndi/datasource resource (something similar to websphere?)
Aljosa Mohorovic wrote: i'm trying to find a way where i don't need to change my app to work on tomcat, some way to define jndi resource that doesn't require changes to application. every document related to this requires some changes to app so i'm wondering how can i configure tomcat with minimal changes in my app? Everything is described on http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html ;-) Anyway, minimal setup requires META-INF/context.xml file with resource definition and a reference to it in web.xml. -- Mikolaj Rydzewski [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat loops indefinitely
Hi all! I'm struggling with a really weird problem. I have a Cocoon 2.2 application that runs on Tomcat 5.5.25-5ubuntu1 and Java 1.5.0. My (semi-)production system, my test system and my development system are Ubuntu 8.04 boxes, and they differ very little, with the exception that the production environment is a Vmware slice, the others are not. The application runs fine on the development and test systems, but it is not at all working on the production box. What's happening is that I deploy the war, restart the server. I then GET a URL on the system, apparently, any URL will do. The application starts doing its thing. In my log, I see messages like http-8180-Processor230 DEBUG impl.DefaultSparqlDispatcher - SPARQLdispatcher connected to Joseki. http-8180-Processor229 DEBUG impl.DefaultSparqlDispatcher - SPARQLdispatcher connected to Joseki. http-8180-Processor228 DEBUG impl.DefaultSparqlDispatcher - SPARQLdispatcher connected to Joseki. which my application emits. The problem is that the application has apparently gone into a loop, as this appears to be different threads. Eventually, it runs out of threads, and comes to a halt: Sep 4, 2008 3:36:52 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (250) are currently busy, waiting. Increase maxThreads (250) or check the servlet status I've tried to debug this in several ways: My gut reaction was that the client was actually throwing tons of requests at it. I falsified this by telnet 127.0.0.1 8180 GET http://127.0.0.1:8180/detektor/ (/detektor/ is the application context). This reproduced the problem and telnet would not follow a redirect. So, it is entirely a server side problem. Then, I installed the standard sample.war application, and that told me hello world, so I guess Tomcat is not entirely to blame either, though I suspect of somewhat foul play for some reason... :-) Thus this post. I've rebuilt and deleted the application many times, stopped and restarted the server many times, generally performed the rituals that needs doing now and then. I've also copied over the war that works on my development box (I tend to package on the production box from a SVN tag). So, it can't be the client. It can't be just Tomcat, it can't be just my application... It doesn't sound very likely that it is VMware. I suspect that I have made some deity rather upset since I'm actually a Perl guy ;-) Does anybody have any idea where I can start? Kind regards Kjetil Kjernsmo -- Senior Knowledge Engineer Mobile: +47 986 48 234 Email: [EMAIL PROTECTED] Web: http://www.computas.com/ | SHARE YOUR KNOWLEDGE | Computas AS, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 1001 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
any way to inhibit Tomcat from deleting context descriptors if the WAR file disappears?
Is there any way to stop Tomcat from deleting my Context descriptor files if the WAR file somehow disappears? (Other than chmod 400 that is :-) ) - Julian -- -- Julian C. Dunn, P.Eng. [EMAIL PROTECTED] -- Assistant Team Lead / Chef d'équipe adjoint -- Media Production Support / Soutien à la production des médias -- Canadian Broadcasting Corporation / Société Radio-Canada -- Office/Bureau: 2C310-N * Tel.: (416) 205-3311 x6988 * DID: 1-151-6988 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5. META-INF/context.xml ignored when deploying as war.
From: Eric Berry [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 5.5. META-INF/context.xml ignored when deploying as war. (Just expanding a little on what Mark gave you.) Why recommend the use of the context.xml if it really isn't used? It is used - Tomcat copied the context.xml file from your webapp's META-INF directory to conf/Catalina/[host]/[appName].xml during expansion of the .war file. Your particular Context element has no useful content, however. I always had the impression the name of file was used as a default case when a more specific context.xml wasn't present. No, the path attribute is used only when the Context element is in server.xml, which is strongly discouraged. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: User Directories and context.xml?
From: Tim J Schumacher [mailto:[EMAIL PROTECTED] Subject: Re: User Directories and context.xml? Just out of curiosity, does anyone know the motivation for not reading context.xml out of a user's directory? (I apologize for coming in late on this one.) Tomcat does use context.xml out of a webapp's META-INF directory, if the file conf/Catalina/[host]/[appName].xml does not exist. If said file does exist, the context.xml file in META-INF is ignored. What is your Host appBase set to? How do you deploy the 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. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk is not getting compile on centos 5.2 64-bit
Hi Ankush, mod_jk configure uses ${APXS} -q PREFIX to see if it works, where ${APXS} is what you gave to --with-apxs. You can try that directly, and see if it works, or if your apxs is broken: /usr/sbin/apxs -q PREFIX Regards, Rainer ankush grover schrieb: Hi Friends, I am trying to compile mod_jk on Centos 5.2 64-bit for apache2.2.3 but I am getting apxs not found. Whereas apxs is already there on the server. type apxs apxs is /usr/sbin/apxs ./configure CFLAGS=' -arch x86_64 ' APXSLDFLAGS=' -arch x86_64 ' --with-apxs=/usr/sbin/apxs - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upgrading to 6.0.18
Hello Does anyone knows if with a simple replacement of the jars of CATALINA_HOME/lib can I upgrade from 6.0.14 to 6.0.18?
Re: User Directories and context.xml?
Hi Chuck, My appbase is $CATALINA_HOME/webapps and CATALINA_HOME=/usr/local/apache-tomcat-6.0.16 Apps running from that directory are working as expected-context.xml is getting processed and all is good. The question I had was, after setting up the Listener in server.xml Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html homeBase=/home userClass=org.apache.catalina.startup.PasswdUserDatabase / so that any users on the system could create an app in /home/username/public_html everything worked as expected *except* it appeared that TC was not reading the public_html/META-INF/context.xml file. It did read the public_html/WEB-INF/web.xml and picked up the classes and lib directory under public_html/WEB-INF as well. The only thing it appeared not to do was read the context.xml. So maybe there is a context.xml somewhere else that reads and then ignores those? Or is this something to do with a users public_html being outside the appbase? The documentation hinted that maybe when you use that Listener you only get the default context (see the link in my first post). Thanks! Tim Caldarale, Charles R wrote: From: Tim J Schumacher [mailto:[EMAIL PROTECTED] Subject: Re: User Directories and context.xml? Just out of curiosity, does anyone know the motivation for not reading context.xml out of a user's directory? (I apologize for coming in late on this one.) Tomcat does use context.xml out of a webapp's META-INF directory, if the file conf/Catalina/[host]/[appName].xml does not exist. If said file does exist, the context.xml file in META-INF is ignored. What is your Host appBase set to? How do you deploy the 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. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception when trying to configure a pool of connections for use of WS
And the code you use to get a connection? Looks like the database pool should be fine, you are getting a javax.sql.DataSource object but treating it as a java.naming.Context object. As an aside and definitely not things affecting the issue you describe below: 1. Do not use the root user in the database service for a web application. It's a potential security flaw big enough to fit a jumbo jet into. 2. Do use strong passwords on the database (especially for the root account) with at least three character classes (upper case, lower case, punctuation, numbers) and no dictionary words present. 2. Add a validatonQuery=select 1 attribute to your Resource ... / element so connections are tested and regenerated as needed. --David Daniele Development-ML wrote: Hello everybody, I am trying to set up the configuration for a pool of connections to a MySQL DB and I get the following exception when deploying on Tomcat. I followed the steps at http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html. The application actually consists of a web service that performs a query to the DB. Any hints or suggestions? Thank you! Context file ?xml version=1.0 encoding=UTF-8? Context path=/DB_WS debug=5 reloadable=true crossContext=true Resource name=jdbc/MySQL_cellmlrep type=javax.sql.DataSource auth=Container user=root password=root driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/cellmlrep maxActive=8 maxIdle=4/ /Context Web.xml ?xml version=1.0 encoding=UTF-8? web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; listener listener-classcom.sun.xml.ws.transport.http.servlet.WSServletContextListener/listener-class /listener servlet servlet-nameDBAccess/servlet-name servlet-classcom.sun.xml.ws.transport.http.servlet.WSServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameDBAccessService/servlet-name servlet-classcom.sun.xml.ws.transport.http.servlet.WSServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameDBAccess/servlet-name url-pattern/DBAccess/url-pattern /servlet-mapping servlet-mapping servlet-nameDBAccessService/servlet-name url-pattern/DBAccessService/url-pattern /servlet-mapping session-config session-timeout 30 /session-timeout /session-config welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list resource-ref description The database DataSource for the Acme web application. /description res-ref-namejdbc/MySQL_cellmlrep/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app Exception java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.BasicDataSource cannot be cast to javax.naming.Context at org.apache.catalina.core.NamingContextListener.createSubcontexts(NamingContextListener.java:1203) at org.apache.catalina.core.NamingContextListener.addResource(NamingContextListener.java:1015) at org.apache.catalina.core.NamingContextListener.createNamingContext(NamingContextListener.java:633) at org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:237) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252) 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: Tomcat loops indefinitely
From: Kjetil Kjernsmo [mailto:[EMAIL PROTECTED] Subject: Tomcat loops indefinitely The problem is that the application has apparently gone into a loop, as this appears to be different threads. Eventually, it runs out of threads, and comes to a halt: What does a thread dump show? (Before taking one, you might want to reduce the number of threads to avoid a lot of clutter in the dump.) You can use the jstack utility from the JDK (among other mechanisms) to get a thread dump of an active JVM. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 (Unable to find servlet or load servlet jar from a clientjar)
From: Robert K. Vanderhoek [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 (Unable to find servlet or load servlet jar from a clientjar) I'm just surprised it isn't stressed more to use a web.xml file for each webapp since it is so vital. Read the servlet spec - a prerequisite for using any servlet container. The Tomcat doc avoids duplicating information contained in the spec. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: symlinks in webapps
From: Claudio Tassini [mailto:[EMAIL PROTECTED] Subject: symlinks in webapps The goal is to have the same webapp referenced by two contexts Rather than use symlinks, try using an additional Context element in conf/Catalina/[host]/WebMail2.xml: Context docBase=WebMail / (Include whatever else is needed from the META-INF/context.xml file, if there is one. Do NOT use a path attribute.) Haven't tried this exact situation, but I think it should work... (famous last words). - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Yet another context logging question
Hello all, I have Context named foo whose path is /foo and whose docbase is DOCS/foo. foo has it's own AccessLogValve Foo has a subdirectory bar which I would now like to be it's own Context and AccessLogValue. My question is: Will defining a context /foo/bar at DOCS/foo/bar, with it's own LogValue, keep Foo's LogValve from capturing requests for Bar's files? Java 1.4.2 Tomcat 5.5 Thanks, jhm
Tomcat 5.5
I moved my keystore to a new server and modified the server.xml to point to the keystore, but I'm unable to connect via https. However, I'm able to connect with http. Thanks Ed The information transmitted is intended only for the person(s) or entity to which it is addressed and may contain confidential and or privileged material and should be treated as a confidential AAA Auto Club South communication. If the reader of this message is not the intended recipient, you are hereby notified that your access is unauthorized, and any review, dissemination, distribution, or copying of this message including any attachments is strictly prohibited.
Tomcat connector attributes
Hi! I have tomcat 6.0.18 with tomcat-native enabled with APR 1.3.2 and with connector configuration as below.. Connector port=7372 SSLCertificateFile=/tmp/abc.crt SSLCertificateKeyFile=/tmp/abc.key SSLPassword=password SSLProtocol=TLS protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=true/ However, I get the below warning message in the log file.. Sep 5, 2008 8:51:30 PM org.apache.catalina.startup.SetAllPropertiesRule begin WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'clientAuth' to 'true' did not find a matching property. The SSL attributes for the Connector lists clientAuth as a valid attribute(http://tomcat.apache.org/tomcat-6.0-doc/config/http.html).Could anyone point to what could be wrong? Thanks! in advance. Sharan. - This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities.
Re: Tomcat 6 (Unable to find servlet or load servlet jar from a clientjar)
thanks again Caldarale, Charles R wrote: From: Robert K. Vanderhoek [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 (Unable to find servlet or load servlet jar from a clientjar) I'm just surprised it isn't stressed more to use a web.xml file for each webapp since it is so vital. Read the servlet spec - a prerequisite for using any servlet container. The Tomcat doc avoids duplicating information contained in the spec. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . -- Robert K. Vanderhoek (603) 772-2305 Computer Technician IT Department Connor Connor 16 Kingston Rd Unit #5 Exeter, NH 03833
Re: Tomcat 5.5. META-INF/context.xml ignored when deploying as war.
Mark, Chuck, Thank you both very much for the detailed explanations. I can certainly see how this would definitely speed development along, and how - in most cases - the context.xml is unnecessary. I myself, have rarely used them unless as Mark mentioned, I needed specific context parameters. In this case however, I'm using maven 2 to build the war file locally, and maven 2 is appending the version and -SNAPSHOT to the war (as well as the exploded war directory). This simply means that I have to rename the war every time in order to deploy it. I was trying to use the Context/path to remove a little bit of tedium on my part. Not a really big deal, but I would like to ask why the path attribute is ignored - meaning, why originally was the decision made to ignore it in this type of situation? Thank you again for all the help. Cheers, Eric -- Learn from the past. Live in the present. Plan for the future. 11101000 http://www.townsfolkdesigns.com/blogs/elberry
Tomcat 6 and corruption of text in French error pages
Hi, I have Tomcat 6 installed on a French version of Windows XP. When error pages, such as the 404 error page, appear the French text is corrupted. For example, instead of the expected: La ressource demandée (/manager/html) n'est pas disponible. I get: La ressource demand�e (/manager/html) n'est pas disponible. This would appear to indicate that the page is being encoded as UTF-8 and then treated as ISO-8859-1. The display is consistent in all browsers I have tested with, which include IE6, Safari and Firefox. Has anyone seen this and do they know how to resolve it? I know I could simply use my own error page, but that is not the answer I am looking for, Andre -- mailto:[EMAIL PROTECTED]
Re: jsvc creates pid file owned by root
See Thread at: http://www.techienuggets.com/Detail?tx=31984 Posted on behalf of a User You shouldn't be messing about with the ownership of the PID file. It is created by jsvc at startup. If you use jsvc properly it will start as root, create the pid file, startup tomcat ... Ah, but what if you are using jsvc to run something other than tomcat? I am using jsvc to run a standalone java application as a daemon that starts whenever the server is restarted. However, I would like a certain user other than root to be able to run the same launching script for this daemon to start and stop the service as needed. I find I cannot do it because of the permission on the .pid file. No matter where I put the pidfile and no matter whether or not I run umask in the launching script, the pidfile gets created with an owner of root and perms of 600. If I run umask 133 and then create a file, I get perm 644 as I want on the file. But the same does not work from within my jsvc-launch script with the pid file. Nothing I've tried works. In Response To: Hi, I can start and stop Tomcat 5.5 with the jsvc program but the problem is that the pid file is created with permissions 600 and owned by root. I want to be able to read the pid file to check if the Tomcat process is up and running and also for other purposes. Is it possible to make the pid file be owned by the user that runs Tomcat or have the permissions to be set to 666? Regards Gunnar -- ... http://www.nabble.com/jsvc-creates-pid-file-owned-by-root-tp16606528p1660652 8.html Sent from the Tomcat - User mailing list archive at - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat connector attributes
your observation is correct, the clientAuth attribute only exists on protocol=org.apache.coyote.http11.Http11NioProtocol and protocol=org.apache.coyote.http11.Http11Protocol Filip [EMAIL PROTECTED] wrote: Hi! I have tomcat 6.0.18 with tomcat-native enabled with APR 1.3.2 and with connector configuration as below.. Connector port=7372 SSLCertificateFile=/tmp/abc.crt SSLCertificateKeyFile=/tmp/abc.key SSLPassword=password SSLProtocol=TLS protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=true/ However, I get the below warning message in the log file.. Sep 5, 2008 8:51:30 PM org.apache.catalina.startup.SetAllPropertiesRule begin WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'clientAuth' to 'true' did not find a matching property. The SSL attributes for the Connector lists clientAuth as a valid attribute(http://tomcat.apache.org/tomcat-6.0-doc/config/http.html).Could anyone point to what could be wrong? Thanks! in advance. Sharan. - This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsvc creates pid file owned by root
[EMAIL PROTECTED] wrote: See Thread at: http://www.techienuggets.com/Detail?tx=31984 Posted on behalf of a User You shouldn't be messing about with the ownership of the PID file. It is created by jsvc at startup. If you use jsvc properly it will start as root, create the pid file, startup tomcat ... Ah, but what if you are using jsvc to run something other than tomcat? I am using jsvc to run a standalone java application as a daemon that starts whenever the server is restarted. However, I would like a certain user other than root to be able to run the same launching script for this daemon to start and stop the service as needed. I find I cannot do it because of the permission on the .pid file. No matter where I put the pidfile and no matter whether or not I run umask in the launching script, the pidfile gets created with an owner of root and perms of 600. If I run umask 133 and then create a file, I get perm 644 as I want on the file. But the same does not work from within my jsvc-launch script with the pid file. Nothing I've tried works. In Response To: Hi, I can start and stop Tomcat 5.5 with the jsvc program but the problem is that the pid file is created with permissions 600 and owned by root. I want to be able to read the pid file to check if the Tomcat process is up and running and also for other purposes. Is it possible to make the pid file be owned by the user that runs Tomcat or have the permissions to be set to 666? Regards Gunnar I am the anonymous author of the piece you're responding to. What a coincidence seeing it bounce back here on the Tomcat list - Of course, my example did NOT concern Tomcat. Anyway my JSVC daemon needs to fulfill two needs: 1) restart the application on bootup - which is done by root 2) allow non-root user to start-stop the application using the standard daemon start/stop/restart kinds of commands. The only way I could get this to work was to modify my shell script to change the permissions and the group of the pid file after the jsvc start call was made. This works very nicely. Putting a call to umask in the script before the jsvc invocation did not work. I still don't know why. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat connector attributes
Thanks! Sharan. Filip Hanik - Dev Lists [EMAIL PROTECTED] 09/05/2008 05:33 PM Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: Tomcat connector attributes your observation is correct, the clientAuth attribute only exists on protocol=org.apache.coyote.http11.Http11NioProtocol and protocol=org.apache.coyote.http11.Http11Protocol Filip [EMAIL PROTECTED] wrote: Hi! I have tomcat 6.0.18 with tomcat-native enabled with APR 1.3.2 and with connector configuration as below.. Connector port=7372 SSLCertificateFile=/tmp/abc.crt SSLCertificateKeyFile=/tmp/abc.key SSLPassword=password SSLProtocol=TLS protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=true/ However, I get the below warning message in the log file.. Sep 5, 2008 8:51:30 PM org.apache.catalina.startup.SetAllPropertiesRule begin WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'clientAuth' to 'true' did not find a matching property. The SSL attributes for the Connector lists clientAuth as a valid attribute(http://tomcat.apache.org/tomcat-6.0-doc/config/http.html ).Could anyone point to what could be wrong? Thanks! in advance. Sharan. - This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities.
RE: Yet another context logging question
From: Jonathan Mast [mailto:[EMAIL PROTECTED] Subject: Yet another context logging question Foo has a subdirectory bar which I would now like to be it's own Context and AccessLogValue. Such a configuration is not supported - webapps may not be nested. Whatever results you get will be purely accidental and not necessarily repeatable from one Tomcat level to the next. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]