FW: HTTP Status 500 - with Apache Tomcat/5.5
Hi all: when I run the http://localhost:8180/geant2-java-rrd-ma in the browser ,it's show the error message as follows : HTTP Status 500 - _ type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Exception in JSP: /index.jsp:77 74: 75:java.text.DateFormat dateFormat = new java.text.SimpleDateFormat(EEE MMM dd HH:mm:ss zzz ); 76:java.util.Date now= new java.util.Date(); 77:java.util.Date date= dateFormat.parse(now.toString()); 78:String confPath = WEB-INF/classes/perfsonar/conf/; 79:String ServicePropertiesPath = confPath+ service.properties; 80:ServletContext sc = getServletContext(); Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWra pper.java:451) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 55) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause javax.servlet.ServletException: Unparseable date: Mon Dec 15 16:29:38 GMT+08:00 2008 org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI mpl.java:841) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:774) org.apache.jsp.index_jsp._jspService(index_jsp.java:239) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 31) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.text.ParseException: Unparseable date: Mon Dec 15 16:29:38 GMT+08:00 2008 java.text.DateFormat.parse(DateFormat.java:335) org.apache.jsp.index_jsp._jspService(index_jsp.java:127) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 31) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs. _ Apache Tomcat/5.5 What's the problem ? How can I to solve the problem ? Thanks!
Re: FW: HTTP Status 500 - with Apache Tomcat/5.5
Somewhere in your code, you're trying to decode a date which isn't on the right format: javax.servlet.ServletException: Unparseable date: Mon Dec 15 16:29:38 GMT+08:00 2008 You can either use a compatible SimpleDateFormat (with a pattern which goes fine) or remove that part of code. But this has nothing to do with tomcat at all, this is pure java hsuan a écrit : Hi all: when I run the http://localhost:8180/geant2-java-rrd-ma in the browser ,it's show the error message as follows : HTTP Status 500 - _ type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Exception in JSP: /index.jsp:77 74: 75:java.text.DateFormat dateFormat = new java.text.SimpleDateFormat(EEE MMM dd HH:mm:ss zzz ); 76:java.util.Date now= new java.util.Date(); 77:java.util.Date date= dateFormat.parse(now.toString()); 78:String confPath = WEB-INF/classes/perfsonar/conf/; 79:String ServicePropertiesPath = confPath+ service.properties; 80:ServletContext sc = getServletContext(); Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWra pper.java:451) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 55) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause javax.servlet.ServletException: Unparseable date: Mon Dec 15 16:29:38 GMT+08:00 2008 org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI mpl.java:841) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:774) org.apache.jsp.index_jsp._jspService(index_jsp.java:239) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 31) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.text.ParseException: Unparseable date: Mon Dec 15 16:29:38 GMT+08:00 2008 java.text.DateFormat.parse(DateFormat.java:335) org.apache.jsp.index_jsp._jspService(index_jsp.java:127) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 31) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs. _ Apache Tomcat/5.5 What's the problem ? How can I to solve the problem ? Thanks! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: CATALINA_HOME
Naaag wrote: Richard Dunne wrote: I have just download Apache Tomcat 6. I have configured tomcat according to http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Catalina-Home. My Tomcat directory is c:\Tomcat6\apache-tomcat-6.0.14. I tried starting startup.bat but got the error: The CATALINA_HOME environment variable is not defined correctly This environment variable is needed to run this program My CATALINA_HOME environment variable is set to c:\Tomcat6\apache-tomcat-6.0.14\conf Can anyone advise, any help appreciated. Thanks, Richard. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ Hi Richard, CATALINA_HOME variable should always contains basic tomcat instalation directory. so u should set this variable to ur tomcat instalation directrory. eg:If i installed tomcat 6.0 in c:\tomcat 6.0,then we should set catalina home as CATALINA_HOME=c:\tomcat 6.0 what u have done wrong is,you added extra folder conf. you have installed ur tomcat in c:\Tomcat6\apache-tomcat-6.0.14 directory. so ur catalina is CATALINA_HOME=c:\Tomcat6\apache-tomcat-6.0.14 ok bye Nag -- View this message in context: http://www.nabble.com/CATALINA_HOME-tp14345912p21013731.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: DeltaManager + Session beans: Do they like eachother?
A bit of more information. The session bean is implemented using com.sun.rave.web.ui.appbase.AbstractSessionBean I haven't found any relationship between that class and incompatibilities with Tomcat and/or the DeltaManager. I'm puzzled On Fri, 2008-12-12 at 13:24 +0100, Pieter Temmerman wrote: Hello everybody, First of all, to avoid any misunderstandings, below problems relate to applications that I did not write, neither do I exactly know the implementation of them. Although, if required, I can ask the programmer for more information. That being said, the problem that I am seeing is that the application that I deployed on a Tomcat 5.5.27 cluster is not correctly handling session replication. (The application works perfectly on a single server). The reason for thinking this is that the application fails, but only at irregular intervals. When I press F5, then the page eventually comes true. As said before, this does not happen in a single server environment. According to the Tomcat logs, I can see that my request is being served by Tomcat1 and by Tomcat2, and vice versa. My server.xml configuration: Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true clusterLog=true clusterLogName=clusterlog Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.6 mcastPort=45566 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=172.18.0.39 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=25/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000 keepAliveTimeout=2 waitForAck=true/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.* \.html;.*\.css;.*\.txt;/ !--Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/-- ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener/ /Cluster Something interesting that I figured out is that if I change the managerClass from managerClassName=org.apache.catalina.cluster.session.DeltaManager to managerClassName=org.apache.catalina.cluster.session.SimpleTcpReplicationManager then the application works fine. (It keeps working when I set useDirtyFlag to false). One would think that the DeltaManager is just not replicating, but I can see the following messages in catalina.out: catalina.out:INFO: Manager[/Application1], requesting session state from org.apache.catalina.cluster.mcast.McastMember[tcp://172.18.0.40:4001,catalina,172.18.0.40,4001, alive=73627]. This operation will timeout if no session state has been received within 60 seconds catalina.out:INFO: Manager[/Application1], session state received in 104 ms. Currently the only information that I have about the application is that it's using JSF and session beans. The developer said he does not need to explicitly put session.SetAttribute(whatever), since this is automatically taken care of by the session bean object. I'm not a Java programmer, so I'm not sure whether that is correct. I would really appreciate if someone could point me into the right direction. Btw. I cannot change the managerclass to SimpleTcpReplicationManager, as I got other applications on the same server that start failing if that manager is used. - 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: bad content type mod_jk 1.2.27
Hi all, I have tried with apache 2.0.63 and modjk 1.2.6 and the result is the same. Someone can help me to identify which tomcat class set the content type about a request? I want to add a log on source in order to understand why the same request have two different response (content type text/html or bad text/plain) with random frequency. Many thanks, Marco marcobalc wrote: Hi, I attach the ajp log for two cases: one ok and one ko. http://www.nabble.com/file/p20971586/headers_ok_and_ko.txt headers_ok_and_ko.txt I'm going crazy in order to understand when tomcat lost headers... :( Many thanks, regards Marco marcobalc wrote: Hi, an other strange behavior is that some times when I reboot tomcat and I refresh browser while I wait that tomcat is up and runnig I see the normal error page displayed when the tomcat is not yet started but also in this case I see the source html code on the browser instead of HTML interpreted. This is the source the was displayed !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN htmlhead title200 OK/title /headbody h1OK/h1 pThe server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later./p /body/html and the response header visible on firefox Date: Thu, 11 Dec 2008 15:58:32 GMT Server: Apache/2.2.9 (Unix) mod_jk/1.2.27 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/plain 200 OK best regards, Marco Rainer Jung-3 wrote: Hi Marco, marcobalc schrieb: Hi, now I have the stacktrace but the problem is that the stack do not involve my classes :| java.lang.Throwable: Stack Info at org.apache.jk.core.MsgContext.action(MsgContext.java:263) at org.apache.coyote.Response.action(Response.java:183) at org.apache.coyote.Response.sendHeaders(Response.java:380) at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305) at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:273) at org.apache.catalina.connector.Response.finishResponse(Response.java:492) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:310) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) Any idea? i'm going crazy on this problem :( Could you please post a more complete part of the log file, when used with the increased log level I posted to you earlier in this thread. With the more complete log we will have timestamps, and we can also see the second commit etc. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/bad-content-type-mod_jk-1.2.27-tp20892496p21013440.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
How to setup Authentication for Tomcat integrated with IIS
Hi, I am basically a noob when it comes to Tomcat so I hope someone can help me out. I have a tomcat 5.5 and IIS 6.0 setup on my server. I have IIS setup using isapi redirect so that all jsp requests get sent to the Tomcat Server. This works fine. My problem has to do with security. I am using Windows Integrated security but my question is how do I setup Tomcat to use this as well when a web page sends requests to tomcat? Where or what files in tomcat do I have to alterI assume it is server.xml but I cannot find resources telling me exactly what I need to change. Any help on this would be greatly appreciated. Matt -- View this message in context: http://www.nabble.com/How-to-setup-Authentication-for-Tomcat-integrated-with-IIS-tp21014900p21014900.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: why we need CATALINA_HOME to install tomcat..
From: BEN HMIDA aymen [mailto:aymen.benhm...@tunisiana.com] Subject: RE: why we need CATALINA_HOME to install tomcat.. The reason is mostly for Unix/Linux users to faciltate the acces to tomcat installation directory in shell. And for setting tomcat as a service in Unix/Linux and so on windows None of the above seems to be true. Clearly, CATALINA_HOME has no effect when running as a Windows service, since the services do not use environment variables. The real reason for being able to set CATALINA_HOME and CATALINA_BASE separately is to allow multiple instances of Tomcat running with the same code jar files. See the RUNNING.txt file in the Tomcat installation directory for details. Normal operation of Tomcat does not require setting CATALINA_HOME explicitly; the startup.sh and startup.bat scripts will do that automatically if not previously set (as will catalina.sh and catalina.bat). When CATALINA_HOME is not set, the current directory must be set to ${CATALINA_HOME}/bin; if you want your current directory somewhere else when starting Tomcat, only then do you need to set it to point to the Tomcat installation directory. - 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: Understanding Tomcat Memory Utilization
From: Robinson, Eric [mailto:eric.robin...@psmnv.com] Subject: Understanding Tomcat Memory Utilization Can someone help me understand why tomcat is configured to use 64MB, but claims to peak at 48MB Because that's all it needs to initialize. Unless you set -Xms == -Xmx, the JVM starts out with a smaller heap than the max, and even after the max has been reached, it may shrink the heap size back down if it can. but has resident size of 147MB, and a virtual size of 256MB, while other instances of tomcat have java processes with a resident size of 32MB? Welcome to paging. The Linux memory subsystem will swap out least recently used pages when needed to make room for others. I suspect the ones with the smaller resident sizes initialized first, went idle, and some of their memory was swapped out to make room for the later ones. If you're not seeing paging activity during heavy loads, you're fine. If you are, you'll need to increase the amount of RAM on the system, since you're not going to be able to decrease the JVM heap sizes to any significant degree (64 MB is pretty small these days). - 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: Want to disable automatically generated Context element
From: meharo [mailto:meh...@gmail.com] Subject: Want to disable automatically generated Context element I want to keep default setting deployOnStartup = true, but disable automatically generating Context element for any subdirectory within the application base directory You can't. A webapp must have a Context (explicit or implicit) in order to run. If you're putting something other than webapps under appBase, stop doing that. - 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: bad content type mod_jk 1.2.27
From: marcobalc [mailto:m.bal...@i-contact.it] Subject: Re: bad content type mod_jk 1.2.27 Someone can help me to identify which tomcat class set the content type about a request? For static content, it's org.apache.catalina.servlets.DefaultServlet. - 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
why we need CATALINA_HOME to install tomcat..
Hi, I am using Tomcat 6.0 with windows.I am able to run tomcat in my application by setting CATALINA_HOME and also able to run without setting CATALINA_HOME. I have exactly want , why we need CATALINA_HOME for configuring tomcat? please mail me the reason. Thanking u. Nag -- View this message in context: http://www.nabble.com/why-we-need-CATALINA_HOME-to-install-tomcat..-tp21014027p21014027.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: why we need CATALINA_HOME to install tomcat..
Hi, The reason is mostly for Unix/Linux users to faciltate the acces to tomcat installation directory in shell. And for setting tomcat as a service in Unix/Linux and so on windows -Message d'origine- De : Naaag [mailto:nag...@btpsoft.com] Envoyé : lundi 15 décembre 2008 14:33 À : users@tomcat.apache.org Objet : why we need CATALINA_HOME to install tomcat.. Hi, I am using Tomcat 6.0 with windows.I am able to run tomcat in my application by setting CATALINA_HOME and also able to run without setting CATALINA_HOME. I have exactly want , why we need CATALINA_HOME for configuring tomcat? please mail me the reason. Thanking u. Nag -- View this message in context: http://www.nabble.com/why-we-need-CATALINA_HOME-to-install-tomcat..-tp21014027p21014027.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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: CATALINA_HOME
Richard Dunne wrote: I have just download Apache Tomcat 6. I have configured tomcat according to http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Catalina-Home. My Tomcat directory is c:\Tomcat6\apache-tomcat-6.0.14. I tried starting startup.bat but got the error: The CATALINA_HOME environment variable is not defined correctly This environment variable is needed to run this program My CATALINA_HOME environment variable is set to c:\Tomcat6\apache-tomcat-6.0.14\conf Can anyone advise, any help appreciated. Thanks, Richard. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ Hi Richard, CATALINA_HOME variable should always contains basic tomcat instalation directory. so u should set this variable to ur tomcat instalation directrory. eg:If i installed tomcat 6.0 in c:\tomcat 6.0,then we should set catalina home as CATALINA_HOME=c:\tomcat 6.0 what u have done wrong is,you added extra folder conf. you have installed ur tomcat in c:\Tomcat6\apache-tomcat-6.0.14 directory. so ur catalina is CATALINA_HOME=c:\Tomcat6\apache-tomcat-6.0.14 directory. ok bye Nag -- View this message in context: http://www.nabble.com/CATALINA_HOME-tp14345912p21013695.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
Tomcat 6 classloading and the Servlet 2.5 API spec
I'm trying to clarify something about Tomcat 6 compliance to the Servlet 2.5 spec. The spec (section 9.7.2) says: The container should not allow applications to override or access the container’s implementation classes. In Tomcat 5 it looks like this was handled by having separate common, shared and server directories and the catalina.properties file specified the classloader configuration such that application code couldn't get to the server classes and jars. In Tomcat 6, everything is rolled into a single lib directory. The catalina.properties file can be modified to make things like the older Tomcat versions, but out of the box it looks to me like an application could get to the catalina jar files. Going by a literal reading of the spec, Tomcat 6 is still technically compliant (the spec says should not, not must not) but all the same it seems a little strange that this was changed, unless there's something I'm missing. Does Tomcat 6 have some other mechanism in place to make sure that applications can't access the container classes and worse, make changes to the container's data at run time?
Re: How to setup Authentication for Tomcat integrated with IIS
In that case you need to use NTLM authentication. You might want to take a look at this: http://jcifs.samba.org/src/docs/ntlmhttpauth.html On Mon, Dec 15, 2008 at 15:37, mcarter19 mk_car...@hotmail.com wrote: Hi, I am basically a noob when it comes to Tomcat so I hope someone can help me out. I have a tomcat 5.5 and IIS 6.0 setup on my server. I have IIS setup using isapi redirect so that all jsp requests get sent to the Tomcat Server. This works fine. My problem has to do with security. I am using Windows Integrated security but my question is how do I setup Tomcat to use this as well when a web page sends requests to tomcat? Where or what files in tomcat do I have to alterI assume it is server.xml but I cannot find resources telling me exactly what I need to change. Any help on this would be greatly appreciated. Matt -- View this message in context: http://www.nabble.com/How-to-setup-Authentication-for-Tomcat-integrated-with-IIS-tp21014900p21014900.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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Understanding Tomcat Memory Utilization
We have 60 instances of tomcat 5.X running on an RHEL4 server. Each instance runs a copy of basically the same application, each for a different customer. According to their respective status pages, the tomcats are all configured to use a maximum of 64MB memory, but most peak at around 48MB. However, in 'top' I see that all of the java processes have a virtual image size of approximately 256MB. The resident sizes of the java processes vary wildly from 32MB to 147MB. Can someone help me understand why tomcat is configured to use 64MB, but claims to peak at 48MB, but has resident size of 147MB, and a virtual size of 256MB, while other instances of tomcat have java processes with a resident size of 32MB? Note that these numbers were captured in the middle of the night, after all tomcats had been restarted, and nobody is using the system. --Eric Disclaimer - December 15, 2008 This email and any files transmitted with it are confidential and intended solely for Tomcat Users List,Tomcat Users List. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of . Warning: Although has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This disclaimer was added by Policy Patrol: http://www.policypatrol.com/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to start tomcat server 6x
Patha, I think you've received enough pointers here already. If you're logged in as root and you can't even write into a directory, it's pretty likely that either - the device is mounted read-only (check with mount -l) - the device is somewhat corrupted (either the device or the RAID-controller) When using RAID, use a corresponding tool to check the healthyness. When using a RAID-controller, there sould be tools available from the manufacturer of the raid-sontroller. Alternatively, you could also get smartmon-tools and, if your device is supported, check the device-status with smartmon --all However, if you're not the server-admin, my suggestion is that you forward your request to the server-admin - he should be able to tell you why you can't write into said directory. Anyhow, this whole issue seems not be a Tomcat-issue. 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
A few clustering related doubts
Hi I got a Tomcat cluster set up, which is working for most applications. However, since I am experiencing some problems (See another thread of mine Deltamanager + Session beans: Do they like eachother?), I reread the Tomcat clustering documentation. The following are a few things that are not clear to me, I would definitely appreciate it if someone could answer my doubts :) Note: I'm using Tomcat 5.5.27 According to http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html : 1. Make sure that jvmRoute attribute is set at your Engine Engine name=Catalina jvmRoute=node01 I thought this was only necessary if I wanted to have session affinity. I just want my sessions to be replicated, I don't want to have session affinity. 2. Make sure that your loadbalancer is configured for sticky session mode Again, I thought this was not necessary if session affinity was not required. 3. From the O'reilly: Tomcat The definitive guide book: You must have both the distributable=true attribute set on the webapp’s Context and the distributable/ element in the webapp’s web.xml for session clustering to work. The Tomcat website states: Make sure your web.xml has the distributable/ element or set at your Context distributable=true / Note the -OR-, it does not say -AND-. Until now I only specified this tag in web.xml, which seemed to work just fine. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: A few clustering related doubts
Pieter Temmerman wrote: Hi I got a Tomcat cluster set up, which is working for most applications. However, since I am experiencing some problems (See another thread of mine Deltamanager + Session beans: Do they like eachother?), I reread the Tomcat clustering documentation. The following are a few things that are not clear to me, I would definitely appreciate it if someone could answer my doubts :) Note: I'm using Tomcat 5.5.27 According to http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html : 1. Make sure that jvmRoute attribute is set at your Engine Engine name=Catalina jvmRoute=node01 I thought this was only necessary if I wanted to have session affinity. I just want my sessions to be replicated, I don't want to have session affinity. With the delta manager you don't need session affinity, but from a performance standpoint, it is unwise not to use it. However, it should still work without session affinity. If you don't want to use affinity, remove the jvmRoute attribute 2. Make sure that your loadbalancer is configured for sticky session mode Again, I thought this was not necessary if session affinity was not required. see above 3. From the O'reilly: Tomcat The definitive guide book: You must have both the distributable=true attribute set on the webapp’s Context and the distributable/ element in the webapp’s web.xml for session clustering to work. The Tomcat website states: Make sure your web.xml has the distributable/ element or set at your Context distributable=true / Note the -OR-, it does not say -AND-. Until now I only specified this tag in web.xml, which seemed to work just fine. That is correct, you only need web.xml (that is the spec defined way) you don't need a Context element/attribute. Filip - 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: DeltaManager + Session beans: Do they like eachother?
the DeltaManager (and BackupManager 6.0) only triggers on setAttribute/removeAttribute so this wont work Cart cart = (Cart)session.getAttribute(cart); cart.addItem(cucumber); the simple tcp replication manager replicates the entire session and is able to capture this scenario but that is not the way to go, if you change something in the session, just call setAttribute Cart cart = (Cart)session.getAttribute(cart); cart.addItem(cucumber); session.setAttribute(cart,cart); Filip Pieter Temmerman wrote: Hello everybody, First of all, to avoid any misunderstandings, below problems relate to applications that I did not write, neither do I exactly know the implementation of them. Although, if required, I can ask the programmer for more information. That being said, the problem that I am seeing is that the application that I deployed on a Tomcat 5.5.27 cluster is not correctly handling session replication. (The application works perfectly on a single server). The reason for thinking this is that the application fails, but only at irregular intervals. When I press F5, then the page eventually comes true. As said before, this does not happen in a single server environment. According to the Tomcat logs, I can see that my request is being served by Tomcat1 and by Tomcat2, and vice versa. My server.xml configuration: Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true clusterLog=true clusterLogName=clusterlog Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.6 mcastPort=45566 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=172.18.0.39 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=25/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000 keepAliveTimeout=2 waitForAck=true/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.* \.html;.*\.css;.*\.txt;/ !--Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/-- ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener/ /Cluster Something interesting that I figured out is that if I change the managerClass from managerClassName=org.apache.catalina.cluster.session.DeltaManager to managerClassName=org.apache.catalina.cluster.session.SimpleTcpReplicationManager then the application works fine. (It keeps working when I set useDirtyFlag to false). One would think that the DeltaManager is just not replicating, but I can see the following messages in catalina.out: catalina.out:INFO: Manager[/Application1], requesting session state from org.apache.catalina.cluster.mcast.McastMember[tcp://172.18.0.40:4001,catalina,172.18.0.40,4001, alive=73627]. This operation will timeout if no session state has been received within 60 seconds catalina.out:INFO: Manager[/Application1], session state received in 104 ms. Currently the only information that I have about the application is that it's using JSF and session beans. The developer said he does not need to explicitly put session.SetAttribute(whatever), since this is automatically taken care of by the session bean object. I'm not a Java programmer, so I'm not sure whether that is correct. I would really appreciate if someone could point me into the right direction. Btw. I cannot change the managerclass to SimpleTcpReplicationManager, as I got other applications on the same server that start failing if that manager is used. - 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
SEVERE: Exception fixing docBase: {0} on Windows XP
Have a war file that works fine when installed on Windows 2003, Windows 2000, Windows Vista and Windows XP end-user environments. Have a Windows XP user receiving the below message. The war file is installed on the local hard drive. The error is received when: 1) Tomcat is started as a Windows service. The war file was copied to webapps directory prior to start of Tomcat. And if. 2) if the war file is dropped into the webapps directory when the Tomcat Windows service is running. SEVERE: Exception fixing docBase: {0} java.util.zip.ZipException: Access is denied. Any suggestions on how to resolve this issue would be appreciated. Joe -- View this message in context: http://www.nabble.com/SEVERE%3A-Exception-fixing-docBase%3A-%7B0%7D-on-Windows-XP-tp21020509p21020509.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: Exception fixing docBase: {0} on Windows XP
From: joe_77 [mailto:joseph_freema...@yahoo.com] Subject: SEVERE: Exception fixing docBase: {0} on Windows XP SEVERE: Exception fixing docBase: {0} java.util.zip.ZipException: Access is denied. The error message seems pretty descriptive. Have you checked that the account Tomcat is running under has permission to read the .war file? - 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: Understanding Tomcat Memory Utilization
Welcome to paging. I understand the difference between virtual image size and resident size. The part I don't understand is the relationship between the tomcat memory configuration as reported by the tomcat status page and the actual usage as reported by top. Tomcat says it is configured to use a maximum of 64MB, but top indicates the residant size is twice that and the virtual image size is four times that. -- Eric Disclaimer - December 15, 2008 This email and any files transmitted with it are confidential and intended solely for Tomcat Users List. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of . Warning: Although has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This disclaimer was added by Policy Patrol: http://www.policypatrol.com/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Understanding Tomcat Memory Utilization
Welcome to paging. I understand the difference between resident size and virtual image. What I don't understand is why the tomcat status page indicates that tomcat is configured to use a maximum of 64MB, but the resident size is twice that and the virual image is four times that. In other words, I don't see a relationship between the tomcat memory configuration setting and what actually gets used. -- Eric Robinson Disclaimer - December 15, 2008 This email and any files transmitted with it are confidential and intended solely for Tomcat Users List. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of . Warning: Although has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This disclaimer was added by Policy Patrol: http://www.policypatrol.com/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat6, bottleneck, concurrent requests, windows xp
kazukin6 schrieb am 14.12.2008 um 19:50:52 (-0800): Hi, Michael ! I suppose Connection Times (ms) table section actually describes individual requests? And Percentage of the requests served within a certain time (ms) as well? For me it seems that concurrency is hardly working at all, but threads are blocked (or waiting) somewhere outside of doGet Servlet's method, cause doGet performance doesn't not differ to that extend (although there is some waiting issues inside obviously) Hi Sergey (guessing), I'm not a Tomcat expert, but I'm not sure the 100 threads you've configured in maxThreads will all be around when you launch your Blitz on the server opening 100 parallel connections. You may need to allow Tomcat to warm up, which means that in order to obtain more reliable test results, you should send it, say, 5000 request, like this: ab -n 5000 -c 50 ab -n 5000 -c 60 ab -n 5000 -c 70 etc In the Tomcat documentation, I read that if you configure a so-called Executor, you can instruct it to always have a minimum number of threads hanging around, even when idle. The attribute is called minSpareThreads. See: http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html * minSpareThreads http://tomcat.apache.org/tomcat-6.0-doc/config/http.html * useExecutor On the other hand, there may be something in your servlet that forces serialization, some resource scarcity, like not enough database connections. I made 3 new measurements for different concurrency levels (100, 10, 1) ab.exe - n 100 -c 100 {address} ab.exe execution time=7.641 seconds overall doGet servlet execution =8067 === Time taken for tests: 8.234 seconds Requests per second:12.14 [#/sec] (mean) Time per request: 8234.375 [ms] (mean) Time per request: 82.344 [ms] (mean, across all concurrent requests) ab.exe - n 100 -c 10 {address} ab.exe execution time=8.094 seconds overall doGet servlet execution =7206 === Time taken for tests: 8.094 seconds Requests per second:12.36 [#/sec] (mean) Time per request: 809.375 [ms] (mean) Time per request: 80.938 [ms] (mean, across all concurrent requests) ab.exe - n 100 -c 1 {address} ab.exe execution time=10.578 seconds overall doGet servlet execution=4672 === Time taken for tests: 10.578 seconds Requests per second:9.45 [#/sec] (mean) Time per request: 105.781 [ms] (mean) Time per request: 105.781 [ms] (mean, across all concurrent requests) It's true that your servlet does not appear to execute concurrently. But as stated, that *might* have to do with the very small test volume, or a possible server-side bottleneck. I think you should (1) increase your test volume, (2) check for possible server-side bottlenecks (like database connections), and (3) maybe try the Executor with minSpareThreads. Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Understanding Tomcat Memory Utilization
From: Robinson, Eric [mailto:eric.robin...@psmnv.com] Subject: RE: Understanding Tomcat Memory Utilization Tomcat says it is configured to use a maximum of 64MB That's 64 MB for the *Java heap*, not the entire process. The process space includes lots of other things besides the Java heap, such as room for code, the C heap, other JVM structures, file maps, various bits of OS- and library-managed structures, etc. but top indicates the residant size is twice that and the virtual image size is four times that. Resident should always be = virtual (unless your OS is very strange), and virtual will always be Java heap. - 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: Understanding Tomcat Memory Utilization
That's 64 MB for the *Java heap*, not the entire process. Thanks, that's what I didn't know. -- Eric Disclaimer - December 15, 2008 This email and any files transmitted with it are confidential and intended solely for Tomcat Users List. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of . Warning: Although has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This disclaimer was added by Policy Patrol: http://www.policypatrol.com/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: HTTP Status 500 problem with tomcat5.5
Caldarale, Charles R schrieb am 14.12.2008 um 23:51:55 (-0600): javax.servlet.ServletException: Unparseable date: Mon Dec 15 11:39:35 GMT+08:00 2008 This is very odd; I've tried your code in a stand-alone program without any problem: And there is a reason for that :-) import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; class TestDate { public static void main(String[] args) throws ParseException { DateFormat dateFormat = new SimpleDateFormat(EEE MMM dd HH:mm:ss zzz ); According to the API doc, this is [...] using [...] the default date format symbols for the default locale. In your case, Chuck, this is Locale.US, so it works for you. My default locale is Locale.GERMANY, so I have to write: new SimpleDateFormat(EEE MMM dd HH:mm:ss zzz , Locale.US); Date now = new Date(); Date date = dateFormat.parse(now.toString()); The output of now.toString() on my machine is: Tue Dec 16 01:19:47 CET 2008 The date looks pretty American to me, but Java might not accept CET, which stands for Central European Time, as a valid timezone for the US locale (despite there still being US forces in Germany). System.out.println(date.toString()); date = dateFormat.parse(Mon Dec 15 11:39:35 GMT+08:00 2008); System.out.println(date.toString()); } } This works for me: C:\dev\Java :: more /t2 TestDate.java import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; class TestDate { public static void main(String[] args) throws ParseException { DateFormat dateFormat = new SimpleDateFormat( EEE MMM dd HH:mm:ss zzz , Locale.US); Date now = new Date(); System.out.println( now.toString()); Date date = dateFormat.parse( now.toString()); System.out.println( date.toString()); } } Same story in the OP's JSP, of course. Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: HTTP Status 500 problem with tomcat5.5
From: Michael Ludwig [mailto:mil...@gmx.de] Subject: Re: HTTP Status 500 problem with tomcat5.5 In your case, Chuck, this is Locale.US, so it works for you. My default locale is Locale.GERMANY, so I have to write: new SimpleDateFormat(EEE MMM dd HH:mm:ss zzz , Locale.US); Ahhh... thanks very much for the explanation. despite there still being US forces in Germany Yes, I was in Wiesbaden for a couple of years - but that was about 30 years before Java was invented. - 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
Blocking
Server has been up for about 5 hours under almost zero load but I am concerned about some of the thread info in JConsole.. For example in Main Thread Name: main State: RUNNABLE Total blocked: 54 Total waited: 9 Does this indicate signifigant blocking? Maybe 10-15 requests total in the last 5 hours so cant imagine its the load. Java 1.6, Redhat Enterprise 5, Tomcat 5.5.27 Appreciate the help. Adam
RE: Blocking
yes I would be concerned about the 9 wait threads is there any defining characteristic which causes these threads to sit and wait? maybe a DB Connection or calling a remote resource that is causing the block? more information about the characteristics of the resource would be available by displaying both .\WEB-INF\web.xml .\META-INF\ApplicationContext.xml anyone? Martin __ 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: Mon, 15 Dec 2008 22:53:52 -0500 From: straightfl...@gmail.com To: users@tomcat.apache.org Subject: Blocking Server has been up for about 5 hours under almost zero load but I am concerned about some of the thread info in JConsole.. For example in Main Thread Name: main State: RUNNABLE Total blocked: 54 Total waited: 9 Does this indicate signifigant blocking? Maybe 10-15 requests total in the last 5 hours so cant imagine its the load. Java 1.6, Redhat Enterprise 5, Tomcat 5.5.27 Appreciate the help. Adam _ Send e-mail faster without improving your typing skills. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008
RE: Blocking
From: Martin Gainty [mailto:mgai...@hotmail.com] Subject: RE: Blocking yes I would be concerned about the 9 wait threads It's not the number of waiting threads, it's the number of times this particular thread has done a wait() call. Since the main thread is the one that drives initialization and deployment, it's not unusual for it to have blocking or wait counts. - 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: Blocking
From: AD [mailto:straightfl...@gmail.com] Subject: Blocking For example in Main Thread Name: main State: RUNNABLE Total blocked: 54 Total waited: 9 Once initialization is complete, the main thread does nothing but listen for the shutdown command. The blocks and waits all occurred during startup, so the only potential issue here is why you're getting any blocks at all, since initialization is normally single-thread. (That may not be true if you're using the NIO or APR connector flavors - I haven't looked.) Since the blocks obviously resolve themselves, I wouldn't worry about 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: Unable to start tomcat server 6x
Gregor Schneider wrote: Patha, I think you've received enough pointers here already. If you're logged in as root and you can't even write into a directory, it's pretty likely that either - the device is mounted read-only (check with mount -l) - the device is somewhat corrupted (either the device or the RAID-controller) When using RAID, use a corresponding tool to check the healthyness. When using a RAID-controller, there sould be tools available from the manufacturer of the raid-sontroller. Alternatively, you could also get smartmon-tools and, if your device is supported, check the device-status with smartmon --all However, if you're not the server-admin, my suggestion is that you forward your request to the server-admin - he should be able to tell you why you can't write into said directory. Anyhow, this whole issue seems not be a Tomcat-issue. 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Hi there, Thanks a lot for all of you for sharing your knowledge. I have come to learn a lot of things. Its an issue with the device.The admin is looking into it. Thanks and Regards, Partha. -- View this message in context: http://www.nabble.com/Unable-to-start-tomcat-server-6x-tp20988232p21027749.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: Tomcat 6 classloading and the Servlet 2.5 API spec
peter_f...@blm.gov wrote in message news:of14e2cc5d.7f3b739a-on87257520.0059a8c8-87257520.005b2...@blm.gov... I'm trying to clarify something about Tomcat 6 compliance to the Servlet 2.5 spec. The spec (section 9.7.2) says: The container should not allow applications to override or access the container's implementation classes. In Tomcat 5 it looks like this was handled by having separate common, shared and server directories and the catalina.properties file specified the classloader configuration such that application code couldn't get to the server classes and jars. In Tomcat 6, everything is rolled into a single lib directory. The catalina.properties file can be modified to make things like the older Tomcat versions, but out of the box it looks to me like an application could get to the catalina jar files. Going by a literal reading of the spec, Tomcat 6 is still technically compliant (the spec says should not, not must not) but all the same it seems a little strange that this was changed, unless there's something I'm missing. Does Tomcat 6 have some other mechanism in place to make sure that applications can't access the container classes and worse, make changes to the container's data at run time? For a long time, the Tomcat developers realized that since Java provides introspection, there was really no additional protection provided by classloader segregation if you are not using a SecurityManager sandbox. As a result, they simplified the classloader structure by default and left it up to the admin to configure the sandbox as necessary. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org